├── env-dev│ ├── dev-main.tf│ ├── dev.tfvars│ ├── dev.tfvars.example│ ├── Initialize.tf -> ../Initialize.tf│ ├── init.sh -> ../init.sh│ └── Variables.tf -> ../Variables.tf├── env-production│ ├── Initialize.tf -> ../Initialize.tf│ ├── init.sh -> ../init.sh│ ├── production-main.tf│ ├── production.tfvars│ ├── production.tfvars.example│ └── Variables.tf -> ../Variables.tf├── Initialize.tf├── init.sh├── modules│ ├── IAM│ │ ├── iam_main.tf│ │ ├── Iam-Outputs.tf│ │ ├── policies│ │ │ ├── ecs_instance_policy.json│ │ │ ├── ecs_role.json│ │ │ ├── ecs_service_policy.json│ │ │ └── registry.json│ │ └── Readme.md│ ├── SecurityGroups│ │ ├── Outputs.tf│ │ ├── Readme.md│ │ ├── SG-main.tf│ │ └── Variables.tf│ └── vpc│ ├── Outputs.tf│ ├── Readme.md│ ├── variables.tf│ └── vpc_main.tf└── Variables.tf
$TF remote config -backend=s3 \ -backend-config="bucket=$BUCKET_NAME" \ -backend-config="region=$AWS_DEFAULT_REGION" \ -backend-config="key=$TFSTATE_FILE"
Error initializing remote driver 's3': 1 error(s) occurred:
* No valid credential sources found for AWS S3 remote.Please see https://www.terraform.io/docs/state/remote/s3.html for more information onproviding credentials for the AWS S3 remote
# Recommended setup in each env: provider, remote_state, vpc, sg, iam
provider "aws" { region = "${var.aws_region}" access_key = "${var.aws_access_key}" secret_key = "${var.aws_secret_key}"}
/* # tried with data "terraform_remote_state" on and off but the same error occur
data "terraform_remote_state" "env-dev" { backend = "s3" config { region = "${var.aws_region}" access_key = "${var.aws_access_key}" secret_key = "${var.aws_secret_key}" bucket = "${var.tf_s3_bucket}" key = "${var.tf_s3_state_file}" }}
*/
--
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/c9fd7687-cfda-4ce0-beaf-61752d8a9439%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.