|
|
@@ -76,9 +76,10 @@ const CloudFormationForm: React.FC<Props> = ({
|
|
|
|
|
|
const directToCloudFormation = () => {
|
|
|
let externalId = getExternalId();
|
|
|
+ let trustArn = process.env.TRUST_ARN ? process.env.TRUST_ARN : "arn:aws:iam::108458755588:role/CAPIManagement";
|
|
|
window.open(
|
|
|
`https://console.aws.amazon.com/cloudformation/home?
|
|
|
- #/stacks/create/review?templateURL=https://porter-role.s3.us-east-2.amazonaws.com/cloudformation-policy.json&stackName=PorterRole¶m_ExternalIdParameter=${externalId}`
|
|
|
+ #/stacks/create/review?templateURL=https://porter-role.s3.us-east-2.amazonaws.com/cloudformation-policy.json&stackName=PorterRole¶m_ExternalIdParameter=${externalId}¶m_TrustArnParameter=${trustArn}`
|
|
|
)
|
|
|
}
|
|
|
|