Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial ressource bootstrapping doesn't work ( Bucket & Dynamo ) #202

Open
poberherr opened this issue Aug 2, 2024 · 0 comments
Open

Initial ressource bootstrapping doesn't work ( Bucket & Dynamo ) #202

poberherr opened this issue Aug 2, 2024 · 0 comments

Comments

@poberherr
Copy link

poberherr commented Aug 2, 2024

After following the README.md till the initial s3 bootstrap , apparently the command doesn't execute.

I assume one of the main points of the quickstart is to automate the s3 & dynamo bootstrapping.
As far as I can see:

  • the generation of this resources to TF code looks good
  • the authentication works for me ( in my case sso and sourcing a profile in the global config )

(ICE the resources can also be created manually, I just assumed that this is part of the idea here.)

On the step here when running terramate run -C _bootstrap terraform init the following error occurs

terramate: Entering stack in /_bootstrap/oidc-aws-github
terramate: Executing command "terraform init"

Initializing the backend...
Initializing modules...
╷
│ Error: Failed to get existing workspaces: S3 bucket "XXX-terraform-state-backend" does not exist.
│ 
│ The referenced S3 bucket must have been previously created. If the S3 bucket
│ was created within the last minute, please wait for a minute or two and try
│ again.
│ 
│ Error: operation error S3: ListObjectsV2, https response error StatusCode: 404, RequestID: FWC6RW7K0X3ENGYP, HostID: EC3jzoww92jjwNCYV5DxAtsdI2CcYX1xwV+c1G08DeqN9KCbi0cife4UjQTZ716YX2lEBK64ELA/r65CltIe2Q==, NoSuchBucket: 
│ 
│ 
│ 
╵

terramate: Entering stack in /_bootstrap/terraform-state-bucket
Error: one or more commands failed
> execution failed: running /home/patrick/.asdf/shims/terraform init (in /_bootstrap/oidc-aws-github): exit status 1

Conclusion

The initial bootstrapping of the resources ( S3 Bucket & DynamoDB ) doesn't work.

@poberherr poberherr changed the title Initial Bucket bootstrapping doesn't work Initial ressource bootstrapping doesn't work ( Bucket & Dynamo ) Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant