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

Several ARN Resources are hardcoded and should use data "aws_partition" "current" {} pattern #258

Closed
xenoglaux88 opened this issue May 12, 2021 · 0 comments · Fixed by #259
Assignees

Comments

@xenoglaux88
Copy link

xenoglaux88 commented May 12, 2021

Summary

When deploying to a AWS partition that is not aws explicitly the system fails with Errors that the resource does not exist.

impacted modules:

eks-jx
eks-jx.cluster.eks

impacted files:

./eks-jx.cluster.eks/local.tf
./eks-jx/modules/cluster/main.tf
./eks-jx/modules/cluster/irsa.tf
./eks-jx/modules/vault/main.tf

Steps to reproduce the behavior

For a non aws region (e.g. aws-us-gov) run the following:

terraform init
terraform plan (visual inspection of arns shows incorrect arn assignments)
terraform apply (for errors)

Expected behavior

The arns produced for route 53, IAM policies, EC2, S3 should show an arn prefix of arn:<aws_partition>:. In my case arn:aws-us-gov.

Actual behavior

arn:aws

Terraform version

14.11
The output of terraform version is:

Terraform v0.14.11
+ provider registry.terraform.io/hashicorp/aws v3.39.0
+ provider registry.terraform.io/hashicorp/helm v2.1.2
+ provider registry.terraform.io/hashicorp/kubernetes v2.1.0
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

Your version of Terraform is out of date! The latest version
is 0.15.3. You can update by downloading from https://www.terraform.io/downloads.html

Module version

Operating system

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

Successfully merging a pull request may close this issue.

2 participants