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

Add an example covering how to programmatically manage providers #974

Closed
wants to merge 6 commits into from

Conversation

soerenmartius
Copy link
Contributor

Reason for This Change

Adding a guide that explains how to programmatically manage providers in a Terramate project

Description of Changes

@netlify
Copy link

netlify bot commented Jun 22, 2023

Deploy Preview for terramate-io-docs ready!

Name Link
🔨 Latest commit d65d99c
🔍 Latest deploy log https://app.netlify.com/sites/terramate-io-docs/deploys/649abd8c9dd9630009116953
😎 Deploy Preview https://deploy-preview-974--terramate-io-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dynamodb_table = "terraform_state"
dynamodb_table = "my-terraform-lock-table"

}
}

tm_dynamic "provider" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tm_dynamic "provider" {
# Provider configs
tm_dynamic "provider" {

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02 🎉

Comparison is base (2fbe0ee) 67.94% compared to head (d65d99c) 67.96%.

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     
Flag Coverage Δ
tests 67.96% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +1 to +4
resource "aws_kms_key" "state-bucket-key" {
description = "This key is used to encrypt bucket objects"
deletion_window_in_days = 10
}
Copy link
Contributor

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.

@soerenmartius soerenmartius deleted the soerenmartius/provider-generation-guide branch March 8, 2024 13:39
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

Successfully merging this pull request may close these issues.

3 participants