Open Lewiscowles1986 opened 1 month ago
Hey, thanks for the cool software.
Something strange (to me); is that this seems to require me to setup AWS in a specific way (using profiles).
I set this up on a vanilla machine and attempted to use the following env variables:
AWS_DEFAULT_REGION
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
My provider.tf
provider "aws" { region = "eu-west-1" # Change to your desired region }
Finally, I ran with the command terraformer import aws --resources=cognito --regions=eu-west-1
terraformer import aws --resources=cognito --regions=eu-west-1
This did not work, and raised this error:
lewiscowles@Lewiss-MacBook-Air cognito-okta % terraformer import aws --resources=cognito --regions=eu-west-1 2024/07/11 05:48:19 aws importing region eu-west-1 2024/07/11 05:48:21 aws importing... cognito 2024/07/11 05:48:25 aws error initializing resources in service cognito, err: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, exceeded maximum number of attempts, 3, request send failed, Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connect: host is down 2024/07/11 05:48:25 aws Connecting....
For-now fix is to run aws configure, and fill in the details so a default profile is present. Meh, I guess it works.
aws configure
Hey, thanks for the cool software.
Something strange (to me); is that this seems to require me to setup AWS in a specific way (using profiles).
I set this up on a vanilla machine and attempted to use the following env variables:
AWS_DEFAULT_REGION
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
My provider.tf
Finally, I ran with the command
terraformer import aws --resources=cognito --regions=eu-west-1
This did not work, and raised this error: