Code Monkey home page Code Monkey logo

tfctl's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar grothja avatar mbevc1 avatar patrickli avatar phyber avatar sftim avatar word avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tfctl's Issues

Getting no valid credential sources found for AWS Provider

I am doing my initials test using the example-profile provided on the repo. I just changed the accounts in tfctl.yml to match the ones on my organization. I have setup the credentials using environment variables. When I run tfctl --all -- init I get

info: tfctl running
info: Using config: default
info: Working out AWS account topology
info: Merging configuration
info: account-production: Generating Terraform run directory
info: account-dev: Generating Terraform run directory
info: account-staging: Generating Terraform run directory
info: account-dev: Executing Terraform init
info: account-production: Executing Terraform init
info: account-staging: Executing Terraform init
info: account-staging: Initializing modules...
info: account-staging: 
info: account-staging: Initializing the backend...
error: account-staging: 
error: account-staging: Error: No valid credential sources found for AWS Provider.
error: account-staging:   Please see https://terraform.io/docs/providers/aws/index.html for more information on
error: account-staging:   providing credentials for the AWS Provider
error: account-staging: 
error: account-staging: 
info: account-production: Initializing modules...
info: account-production: 
info: account-production: Initializing the backend...
error: account-production: 
error: account-production: Error: No valid credential sources found for AWS Provider.
error: account-production:  Please see https://terraform.io/docs/providers/aws/index.html for more information on
error: account-production:  providing credentials for the AWS Provider
error: account-production: 
error: account-production: 
info: account-dev: Initializing modules...
info: account-dev: 
info: account-dev: Initializing the backend...
error: account-dev: 
error: account-dev: Error: No valid credential sources found for AWS Provider.
error: account-dev:   Please see https://terraform.io/docs/providers/aws/index.html for more information on
error: account-dev:   providing credentials for the AWS Provider
error: account-dev: 
error: account-dev: 
error: terraform failed with exit code: 1

Multi-region deployment

Hi,

Just wondering how you normally deal with multi-region deployments. For example, ACM certificates for CloudFront are only valid on us-east-1 region while I am deploying the infrastructure on us-east-2. How you normally deal with that on tfctl? Is it possible to deploy resources on different regions using tfctl?

Terraform 0.14 and AWS provider version configuration

Starting in Terraform 0.14, we started to see the following warning from tfctl's Terraform output for all commands:

 Warning: Version constraints inside provider configuration blocks are deprecated

I took a stab at supporting this quickly for our org, by adding the AWS provider version specified to the terraform block and removing it from the provider block when the version of Terraform specified is 0.14+, and it seems to work well for both 0.13 and 0.14. My implementation works OK for our org because we don't do anything too fancy with the tf_required_version string, but there are definitely ways to for that to go wrong, in addition to the version comparison not being robust.

I was wondering if you guys had any thoughts on supporting this, or if you had plans.

Can't use TF modules from registry

I created my own profile called vpc-profile that uses the terraform vpc module

main.tf

module "vpc" {
  source  = "terraform-aws-modules/vpc/aws"
  version = "2.44.0"
...

when I run tfctl --all -d -- init I get (twice)

info: account-dev: Initializing modules...
info: account-dev: Downloading terraform-aws-modules/vpc/aws 2.44.0 for vpc-profile.vpc...
error: account-dev: 
error: account-dev: Error: Failed to download module
error: account-dev: 
error: account-dev: Could not download module "vpc" (../../../profiles/vpc-profile/main.tf:10)
error: account-dev: source code from
error: account-dev: "git::https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.44.0":
error: account-dev: error downloading
error: account-dev: 'https://github.com/terraform-aws-modules/terraform-aws-vpc?ref=v2.44.0': git 
error: account-dev: must be available and on the PATH.
error: account-dev: 
error: account-dev: 

It is like it is not finding git command, which I obviously have installed on my computer.

$ which git
/usr/bin/git

example-profile example not working

Hi, I am testing with the example-profile provided and I am getting

info: account-production: module.example-profile.data.aws_caller_identity.current: Refreshing state...
info: account-staging: persisted to local or remote state storage.
info: account-staging: 
error: account-production: 
info: account-staging: module.example-profile.data.aws_caller_identity.current: Refreshing state...
error: account-production: Error: Invalid index
error: account-production: 
error: account-staging: 
error: account-production:   on ../../../profiles/example-profile/main.tf line 3, in module "bucket":
error: account-production:    3:   name   = "${local.account_id}-${local.account["example_bucket_name"]}"
error: account-staging: Error: Invalid index
error: account-production:     |----------------
error: account-staging: 
error: account-production:     | local.account is object with 11 attributes
error: account-production: 
error: account-staging:   on ../../../profiles/example-profile/main.tf line 3, in module "bucket":
error: account-production: The given key does not identify an element in this collection value.
error: account-production: 
error: account-staging:    3:   name   = "${local.account_id}-${local.account["example_bucket_name"]}"
info: account-production: Releasing state lock. This may take a few moments...
error: account-staging:     |----------------
error: account-staging:     | local.account is object with 11 attributes
error: account-staging: 
error: account-staging: The given key does not identify an element in this collection value.
error: account-staging: 
info: account-staging: Releasing state lock. This may take a few moments...
error: terraform failed with exit code: 1

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.