We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
role_arn
assume_role
Under circumstances still under investigation, init fails with the following error:
init
[INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) Initializing the backend... [INFO] (deploy track/step/primary/us-east-1) Initializing modules... [INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) Warning: Deprecated Parameters [INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) on backend.tf line 2, in terraform: [INFO] (deploy track/step/primary/us-east-1) 2: backend "s3" { [INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) The following parameters have been deprecated. Replace them as follows: [INFO] (deploy track/step/primary/us-east-1) * role_arn -> assume_role.role_arn [INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) Error: No valid credential sources found Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) Please see https://www.terraform.io/docs/language/settings/backends/s3.html Error: (deploy track/step/primary/us-east-1) for more information about providing credentials. Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) Error: failed to refresh cached credentials, no EC2 IMDS role found, Error: (deploy track/step/primary/us-east-1) operation error ec2imds: GetMetadata, failed to get API token, operation Error: (deploy track/step/primary/us-east-1) error ec2imds: getToken, http response error StatusCode: 400, request to EC2 Error: (deploy track/step/primary/us-east-1) IMDS failed Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1)
When the following block is added to backend.tf in the step:
backend.tf
assume_role = { role_arn = "[MY_ARN]" }
The error message at runtime changes to:
[INFO] (deploy track/step/primary/us-east-1) [INFO] (deploy track/step/primary/us-east-1) Initializing the backend... [INFO] (deploy track/step/primary/us-east-1) Initializing modules... Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) Error: Conflicting Parameters Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) on backend.tf line 2, in terraform: Error: (deploy track/step/primary/us-east-1) 2: backend "s3" { Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1) The following deprecated parameters conflict with the parameter Error: (deploy track/step/primary/us-east-1) "assume_role". Replace them as follows: Error: (deploy track/step/primary/us-east-1) * role_arn -> assume_role.role_arn Error: (deploy track/step/primary/us-east-1) Error: (deploy track/step/primary/us-east-1)
It is suspected this is due to RunIAC injecting role_arn as a -backend-config=key=value command line param at runtime.
-backend-config=key=value
Perhaps it is not aware of an assume_role element in the backend config map and does not think a role_arn is defined?
The text was updated successfully, but these errors were encountered:
Likely involves paying down this TODO.
Sorry, something went wrong.
assume-role
No branches or pull requests
Under circumstances still under investigation,
init
fails with the following error:When the following block is added to
backend.tf
in the step:The error message at runtime changes to:
It is suspected this is due to RunIAC injecting
role_arn
as a-backend-config=key=value
command line param at runtime.Perhaps it is not aware of an
assume_role
element in the backend config map and does not think arole_arn
is defined?The text was updated successfully, but these errors were encountered: