-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ethan/test-metrics
- Loading branch information
Showing
12 changed files
with
178 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
resource "aws_dynamodb_table" "example" { | ||
name = "${terraform.workspace}-eu" | ||
|
||
hash_key = "TestTableHashKey" | ||
billing_mode = "PAY_PER_REQUEST" | ||
stream_enabled = true | ||
stream_view_type = "NEW_AND_OLD_IMAGES" | ||
|
||
attribute { | ||
name = "TestTableHashKey" | ||
type = "S" | ||
} | ||
} | ||
|
||
locals { | ||
region = split("_",terraform.workspace)[1] | ||
} | ||
|
||
provider "aws" { | ||
# Two options can use ${telophase.region} or look at local config | ||
region = "${telophase.region}" | ||
} | ||
|
||
terraform { | ||
backend "s3" { | ||
bucket = "tfstate-${telophase.account_id}" | ||
key = "workspace/terraform.tfstate" | ||
region = "us-west-2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ Organization: | |
# This stack will be applied to `Safety Firmware` account only. | ||
- Path: tf/safety/firmware_bucket | ||
Type: Terraform | ||
# You can set the region for where you want the resources to be created. | ||
Region: "us-west-2" | ||
- Email: [email protected] | ||
AccountName: Safety Ingestion Team | ||
- Name: Development | ||
|
@@ -34,3 +36,16 @@ Organization: | |
- Email: [email protected] | ||
AccountName: Engineer A | ||
``` | ||
# Stacks | ||
CDK and Terraform stacks can be assigned to `Account`s and `OrganizationUnits`s. Stacks assigned to `OrganizationUnits` will be applied to all child `Account`s. | ||
|
||
```yaml | ||
Stacks: | ||
- Path: # (Required) Path to CDK or Terraform project. This must be a directory. | ||
Type: # (Required) "CDK" or "Terraform". | ||
Name: # (Optional) Apply only CDK stack with this name. By default, all CDK stacks are applied. (CDK Only) | ||
RoleOverrideARN: # (Optional) Force CDK and Terraform to us a specific role when applying a stack. The default role is the account's `AssumeRoleName`. | ||
Region: # (Optional) What region the stack's resources will be provisioned in. | ||
Workspace: # (Optional) Specify a Terraform workspace to use. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.