Automatically create S3 backend bucket from pipeline #737
-
I'm running a new plan on a dev branch that will create a new VPC in another region using the github action pipeline. I notice that isn't able to create the corresponding S3 bucket and the plan failed. Should I have to run terragrunt init manually on that resource in order to get the bucket created ? See log below: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
@gberlot-luna can you check to make sure you have all the latest changes and versions outlined in this post regarding private S3 buckets and ACLs : https://github.com/orgs/gruntwork-io/discussions/701 |
Beta Was this translation helpful? Give feedback.
-
Hi @gberlot-luna, could you provide some additional information:
|
Beta Was this translation helpful? Give feedback.
-
Hi @arsci 1- Terragrunt Version: 2- I don't agree with the second statement, for 2 reasons:
|
Beta Was this translation helpful? Give feedback.
-
@arsci I just changed the version of terrargrunt (locally) to the same one of ECS deploy runner and I didn't face any error on executing the terraform plan from ECS deploy runner. Thanks!!! Last question prior to close, every time we add a new region that requires a new bucket creation as part of the backend, we need to execute a terragrunt int locally since this functionality isn't supported by ECS deploy runner, right ? |
Beta Was this translation helpful? Give feedback.
Ah, I think I understand what's happening @gberlot-luna.
It looks like your ecs-deploy-runner is on
v0.45.11
, this can be checked by looking at thebuild_deploy_runner_image.sh
build arguments. Looking at yourinfrastructure-live
repo I can see this being passed in:--build-arg 'terragrunt_version=v0.45.11' \
along with terraform version1.1.9
from--build-arg 'terraform_version=1.1.9' \
What is likely happening is you deployed locally using
v0.36.0
, which is over a year old. This also explains the ACL error you were seeing (as this was fixed in terragruntv0.45.4
).Terragrunt state currently is expecting
v0.36.0
since that's what it was created with, but the ecs-deploy-runner is on a muc…