Mischa Spiegelmock
02/20/2022, 9:39 PMthdxr
02/20/2022, 11:18 PMMichael Wolfenden
02/21/2022, 3:18 AMMischa Spiegelmock
02/21/2022, 11:27 AMMischa Spiegelmock
02/21/2022, 11:28 AMthdxr
02/21/2022, 12:55 PMthdxr
02/21/2022, 12:56 PMthdxr
02/21/2022, 12:58 PMMischa Spiegelmock
02/21/2022, 12:59 PMMischa Spiegelmock
02/21/2022, 12:59 PMMischa Spiegelmock
02/21/2022, 1:00 PMthdxr
02/21/2022, 1:03 PMthdxr
02/21/2022, 1:03 PMthdxr
02/21/2022, 1:04 PMthdxr
02/21/2022, 1:06 PMthdxr
02/21/2022, 1:06 PMCreate a stack for your production environment, and a separate one for each of your other stages, and put the configuration values for each right there in the code
Mischa Spiegelmock
02/21/2022, 1:06 PMMischa Spiegelmock
02/21/2022, 1:06 PMMischa Spiegelmock
02/21/2022, 1:06 PMthdxr
02/21/2022, 1:07 PMSean Matheson
02/22/2022, 10:31 AMMischa Spiegelmock
03/06/2022, 8:36 AMMischa Spiegelmock
03/06/2022, 8:37 AMMischa Spiegelmock
03/06/2022, 8:41 AMMischa Spiegelmock
03/06/2022, 9:20 AMMischa Spiegelmock
03/06/2022, 10:00 AMs3Bucket.grantPut(myLambda)
causes a circular dependency error. didn't have this before when I had one stack with a few nested stacks inside. how did you solve this?thdxr
03/06/2022, 4:42 PMthdxr
03/06/2022, 4:42 PMthdxr
03/06/2022, 4:43 PMthdxr
03/06/2022, 4:43 PMMischa Spiegelmock
03/06/2022, 4:43 PMMischa Spiegelmock
03/06/2022, 4:45 PMthdxr
03/06/2022, 4:57 PMMischa Spiegelmock
03/06/2022, 4:57 PMMischa Spiegelmock
03/06/2022, 5:28 PMMischa Spiegelmock
03/06/2022, 5:28 PMthdxr
03/06/2022, 6:47 PMMischa Spiegelmock
03/06/2022, 6:48 PMthdxr
03/06/2022, 6:48 PMMischa Spiegelmock
03/06/2022, 6:48 PMFrank
There are technically 2 ways to grant permissions: 1. Addcauses a circular dependency errors3Bucket.grantPut(myLambda)
s3::xxxx
permission for resource s3Bucket.bucketArn
to myLambda
role’s policy. This way myLambda
depends on s3Bucket
.
2. Create a new IAM policy in `s3Bucket`’s stack with roleArn
set to `myLambda`’s role. This way s3Bucket
depends on myLambda
.
I don’t recall on top of my head which way does s3Bucket.grantPut
do. But if it causes circular dependency error, you can try the other approach.Mischa Spiegelmock
03/07/2022, 1:18 PMMischa Spiegelmock
03/07/2022, 1:18 PMMischa Spiegelmock
03/07/2022, 1:19 PMMischa Spiegelmock
03/09/2022, 8:42 PMMischa Spiegelmock
03/09/2022, 9:16 PMMischa Spiegelmock
03/09/2022, 10:01 PMexportValue()
but I'm not really clear on how to fix my situationFrank