summaryrefslogtreecommitdiff
path: root/evergreen/external_auth_aws_setup.sh
blob: c59b025028ce1d9b8c26f62a449efebb67d7e5f2 (plain)
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
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

cd src

set -o errexit
cat << EOF > aws_e2e_setup.json
{
    "iam_auth_ecs_account" : "${iam_auth_ecs_account}",
    "iam_auth_ecs_secret_access_key" : "${iam_auth_ecs_secret_access_key}",
    "iam_auth_ecs_account_arn": "arn:aws:iam::557821124784:user/authtest_fargate_user",
    "iam_auth_ecs_cluster": "${iam_auth_ecs_cluster}",
    "iam_auth_ecs_task_definition": "${iam_auth_ecs_task_definition}",
    "iam_auth_ecs_subnet_a": "${iam_auth_ecs_subnet_a}",
    "iam_auth_ecs_subnet_b": "${iam_auth_ecs_subnet_b}",
    "iam_auth_ecs_security_group": "${iam_auth_ecs_security_group}",

    "iam_auth_assume_aws_account" : "${iam_auth_assume_aws_account}",
    "iam_auth_assume_aws_secret_access_key" : "${iam_auth_assume_aws_secret_access_key}",
    "iam_auth_assume_role_name" : "${iam_auth_assume_role_name}",

    "iam_auth_ec2_instance_account" : "${iam_auth_ec2_instance_account}",
    "iam_auth_ec2_instance_secret_access_key" : "${iam_auth_ec2_instance_secret_access_key}",
    "iam_auth_ec2_instance_profile" : "${iam_auth_ec2_instance_profile}"
}
EOF