-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdeployments.tfdeploy.hcl
More file actions
32 lines (27 loc) · 997 Bytes
/
Copy pathdeployments.tfdeploy.hcl
File metadata and controls
32 lines (27 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
identity_token "aws" {
audience = ["<Set to your AWS IAM assume-role audience>"]
}
# A single workload token can be trusted by multiple accounts - but optionally, you can generate a
# separate token with a difference audience value for your second account and use it below.
#
# identity_token "account_2" {
# audience = ["<Set to your AWS IAM assume-role audience>"]
# }
deployment "development" {
inputs = {
region = "us-east-1"
role_arn = "<Set to your development AWS account IAM role ARN>"
identity_token = identity_token.aws.jwt
default_tags = { stacks-preview-example = "lambda-multi-account-stack" }
}
}
deployment "production" {
inputs = {
region = "us-east-1"
role_arn = "<Set to your production AWS account IAM role ARN>"
identity_token = identity_token.aws.jwt
default_tags = { stacks-preview-example = "lambda-multi-account-stack" }
}
}