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

tfstate should be stored in a central bucket #4

Closed
mckayjuk opened this issue Dec 12, 2017 · 2 comments
Closed

tfstate should be stored in a central bucket #4

mckayjuk opened this issue Dec 12, 2017 · 2 comments

Comments

@mckayjuk
Copy link
Owner

Uploading tfstate to git causes an number of issues if muliple changes are applied by different people.

@mckayjuk
Copy link
Owner Author

mckayjuk commented Dec 14, 2017

Fixed - Writing to S3 Bucket using terraform config block

# Configure Terraform 
terraform {
  backend "s3" { # Use the noted S3 bucket to store state
    bucket  = "bucke-name"
    key     = "tfstate/terraform.tfstate"
    region  = "eu-west-1"
    encrypt = "true"
  }
}

@mckayjuk
Copy link
Owner Author

Modified slightly per terraform config. Keeping all tfstate files under same bucket but

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

No branches or pull requests

1 participant