#!/usr/bin/env bash

mkdir -p ~/.aws

touch ~/.aws/config

(
cat <<CONFIG
[default]
output = json
region = us-east-1

[profile sme-dev]
role_arn = arn:aws:iam::475275892927:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
output = json
region = us-east-1

[profile gdb-delphi-dev]
role_arn = arn:aws:iam::475275892927:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
output = json
region = us-east-1

[profile sme-prod]
role_arn = arn:aws:iam::323555055331:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-delphi-prod]
role_arn = arn:aws:iam::323555055331:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-artistapp-dev]
role_arn = arn:aws:iam::714609459574:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-artistapp-prod]
role_arn = arn:aws:iam::923763343190:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-databricks-dev]
role_arn = arn:aws:iam::745243859288:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-databricks-prod]
role_arn = arn:aws:iam::807702934854:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-apollo-dev]
role_arn = arn:aws:iam::725764004555:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-apollo-prod]
role_arn = arn:aws:iam::801577982711:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-infra-dev]
role_arn = arn:aws:iam::483193324480:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-infra-prod]
role_arn = arn:aws:iam::890208661333:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-datasci-dev]
role_arn = arn:aws:iam::313114233826:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-core-dev]
role_arn = arn:aws:iam::582412345909:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-core-prod]
role_arn = arn:aws:iam::885200931856:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json

[profile gdb-prodhub-dev]
role_arn = arn:aws:iam::703740486246:role/cross_account_deployment_role
credential_source = Ec2InstanceMetadata
region = us-east-1
output = json
CONFIG
) > /home/ec2-user/.aws/config
