-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add an example covering how to programmatically manage providers #974
Conversation
✅ Deploy Preview for terramate-io-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
terraform { | ||
backend "s3" { | ||
region = "us-east-1" | ||
bucket = "terramate-example-terraform-state-backend" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bucket = "terramate-example-terraform-state-backend" | |
bucket = "my-terramate-terraform-state-backend" |
bucket = "terramate-example-terraform-state-backend" | ||
key = let.key | ||
encrypt = true | ||
dynamodb_table = "terraform_state" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dynamodb_table = "terraform_state" | |
dynamodb_table = "my-terraform-lock-table" |
} | ||
} | ||
|
||
tm_dynamic "provider" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tm_dynamic "provider" { | |
# Provider configs | |
tm_dynamic "provider" { |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #974 +/- ##
==========================================
+ Coverage 67.94% 67.96% +0.02%
==========================================
Files 89 89
Lines 14125 14125
==========================================
+ Hits 9597 9600 +3
+ Misses 4180 4178 -2
+ Partials 348 347 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
resource "aws_kms_key" "state-bucket-key" { | ||
description = "This key is used to encrypt bucket objects" | ||
deletion_window_in_days = 10 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure we should add extended encryption into a terramate guide.. i would suggest to use the default key for simplicity.
- chore: simplify config - chore: add alias support to guide code
Reason for This Change
Adding a guide that explains how to programmatically manage providers in a Terramate project
Description of Changes