Generate CFN + Terraform bootstrap artifacts for an AWS IAM Identity Center role
const url = 'https://example.com/v1/integrations/aws-identity-center/bootstrap-template';const options = { method: 'POST', headers: { 'X-Tenant-ID': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"aws_account_id":"123456789012","sso_instance_arn":"arn:aws:sso:::instance/ssoins-abcdef0123456789","region":"us-east-1"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/integrations/aws-identity-center/bootstrap-template \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-Tenant-ID: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "aws_account_id": "123456789012", "sso_instance_arn": "arn:aws:sso:::instance/ssoins-abcdef0123456789", "region": "us-east-1" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Tenant identifier. Must match the tenant associated with the credential. Returns 403 tenant_mismatch if the credential and header belong to different tenants.
Request Body required
Section titled “Request Body required ”object
Example
123456789012Example
arn:aws:sso:::instance/ssoins-abcdef0123456789Example
us-east-1Responses
Section titled “ Responses ”Rendered bootstrap artifacts
object
Full CFN YAML body, UTF-8.
Full Terraform HCL body, UTF-8.
AWS console deep-link to launch the stack.
Array of trusted ExternalIds. One element at steady state, two during rotation.
Example generated
{ "cloudformation_yaml": "example", "terraform_hcl": "example", "launch_stack_url": "https://example.com", "external_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Invalid input
object
Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).
Human-readable description of the error.
Optional additional context about the error.
object
Policy notices from determining Cedar rules, if applicable.
Example generated
{ "code": "example", "message": "example", "details": {}, "notices": [ "example" ]}Unauthenticated
object
Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).
Human-readable description of the error.
Optional additional context about the error.
object
Policy notices from determining Cedar rules, if applicable.
Example generated
{ "code": "example", "message": "example", "details": {}, "notices": [ "example" ]}