provider "aws" {access_key = "${var.aws_access_key}"secret_key = "${var.aws_secret_key}"region = "${var.aws_region}"}
AmazonEC2FullAccess
AWSCodeCommitFullAccess
AmazonEC2ContainerRegistryFullAccess
AmazonS3FullAccess
CloudWatchFullAccess
AWSCodeDeployRole
AmazonEC2ContainerServiceFullAccess
CloudWatchEventsFullAccess
docker-helper builddocker-helper logindocker-helper pushcd conf-mgmt/system//opt/bin/terraform get/opt/bin/terraform plan -var-file ../vars/common/main.tfvars -var-file ../vars/staging/main.tfvars
variable "aws_access_key" {default=""}variable "aws_secret_key" {default=""
}provider "aws" {access_key = "${var.aws_access_key}"secret_key = "${var.aws_secret_key}"region = "${var.aws_region}"}
Are the access and secret keys definitely set when you run Terraform? Do you, for instance, run your ECR push in a previous stage of your pipeline, and that runs in a different build environment?
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAEpa1D%2BYkSgCp0YB3_VBn2g-XBP2QYEA8m_65aeLF%3DX_tHb_3A%40mail.gmail.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1a5ba1a6-8d9c-4301-80f8-1c97f3016086%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAC-wWcSPPsuxMuqBWDoSAJ%2Bs05wYOmAJZLycuyFVHd4FjRScag%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CADOtw50tD0bsqa%2B5znFxVYxr9eGjR-mtL_fewZY9O90S-ivp-Q%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1a5ba1a6-8d9c-4301-80f8-1c97f3016086%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAC-wWcSPPsuxMuqBWDoSAJ%2Bs05wYOmAJZLycuyFVHd4FjRScag%40mail.gmail.com.
--Imran M Yousuf
Twitter: @imyousuf - http://twitter.com/imyousuf
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
LinkedIn: http://www.linkedin.com/in/imyousuf
GitHub: https://github.com/imyousuf/
oDesk: https://www.odesk.com/users/~012c947401dfd52fae
StackOverflow: http://stackoverflow.com/users/440264/imyousuf
Mobile: +880-1711402557
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
phases: install: commands: - unzip terraform_0.10.2_linux_amd64.zip - sudo mv terraform /bin - rm terraform_0.10.2_linux_amd64.zip - apt-get update - apt-cache search source - apt-get install -y curl jq - curl 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI | jq 'to_entries | [ .[] | select(.key | (contains("Expiration") or contains("RoleArn")) | not) ] | map(if .key == "AccessKeyId" then . + {"key":"AWS_ACCESS_KEY_ID"} else . end) | map(if .key == "SecretAccessKey" then . + {"key":"AWS_SECRET_ACCESS_KEY"} else . end) | map(if .key == "Token" then . + {"key":"AWS_SESSION_TOKEN"} else . end) | map("export \(.key)=\(.value)") | .[]' -r > /tmp/aws_cred_export.txt # work around https://github.com/hashicorp/terraform/issues/8746 - terraform --version - terraform init - cat /tmp/aws_cred_export.txt build: commands: - . /tmp/aws_cred_export.txt && terraform apply - echo "Post apply build" post_build: commands: - command - echo 'post_build nothing to do for now'
terraform remote config -backend=s3 -backend-config="bucket=${TerraformStateBucket}" -backend-config="key=terraform.tfstate"
resource "aws_s3_bucket" "testvycjet" { bucket = "test-tf-bucket-giuseppe-codebuild" acl = "private"}
provider "aws" { profile = "default"
region = "eu-central-1"}
terraform { backend "s3" { bucket = "my-personal-state-terraform-bucket" key = "terraform.tfstate" region = "eu-central-1" }}