Relative Content

Tag Archive for amazon-web-servicesterraform

Terraform error reading AWS when AWS CLI succeeds

I’m new to Terraform. Starting with something simple gives me an error about not being authorized. However running the equivalent command on the AWS CLI yields the expected output. Before running any of these commands, aws sso login was run successfully to handle authentication.

Issue with importing ebs volumes into terraform state file

I am trying to import a manually created EBS volume attached to an ec2 consisting 4 ebs volumes in total.
The 3 volumes where created and attached to an EC2 from terraform code and are part of TF state file.
The new 4th volume was created manually from aws console. There are two ec2’s these volumes are part of index reference as [0] and [1] in TF state file.
~ terraform state file snippet for reference

Terraform reverse engineering without default values

when reverse engineering aws infra with import and show or with terraformer, there are many values that are default values, is there a way to remove those default values so the configuration is more concise? Thanks!

How do i connect bitbucket to codestar via terraform?

INCIPIT: The request is to create a pipeline in codepipeline that is started when I effect a commit on the main branch in bitbucket; the only problem is using terraform to centralize the larger number of operations and the inability to use oidc for enterprise poicy.