Activate Spinnaker Account - EC2, ECS, Lambda - Sandbox Instance
Closed this issue · 0 comments
Name of Tester: Hitesh Parikh
Date of Test: 08/24/2020
Title of Test: Activate Spinnaker Account with EC2, ECS, Lambda in Sandbox Instance.
Step 1: Copy Alfred mock API response JSON in response.json in the directory where 'response' go server runs.
Alfred mock API response JSON:
{ "Accounts": [ { "AccountId": "569729057445", "SpinnakerAccountName": "hitesh-1-ec2-569729057445", "Regions": [ "us-east-1" ], "SpinnakerStatus": "ACTIVE", "SpinnakerAssumeRole": "role/spinnakerManaged", "SpinnakerProviders": [ "ecs", "lambda", "ec2" ], "SpinnakerId": "SANDBOX", "CreatedAt": "1598026448909979587", "UpdatedAt": "1598027546352337694" } ], "Pagination": { "NextUrl": "" } }
Step 2: curl http://localhost:7002/credentials
Result: Spinnaker account 'hitesh-1-ec2-569729057445' created with provider types - "ecs" and "aws".
Spinnaker 'credentials' Response JSON:
[ { "accountId": "569729057445", "accountType": "ecs", "challengeDestructiveActions": false, "cloudProvider": "ecs", "environment": "hitesh-1-ec2-569729057445", "name": "hitesh-1-ec2-569729057445-ecs", "permissions": {}, "primaryAccount": false, "requiredGroupMembership": [], "type": "ecs" }, { "accountId": "569729057445", "accountType": "hitesh-1-ec2-569729057445", "challengeDestructiveActions": false, "cloudProvider": "aws", "environment": "hitesh-1-ec2-569729057445", "name": "hitesh-1-ec2-569729057445", "permissions": {}, "primaryAccount": false, "requiredGroupMembership": [], "type": "aws" }, { "accountId": "569729057445", "accountType": "ecs", "challengeDestructiveActions": false, "cloudProvider": "ecs", "environment": "hitepari-aws-account", "name": "ecs-account-name", "permissions": {}, "primaryAccount": false, "requiredGroupMembership": [], "type": "ecs" }, { "accountId": "569729057445", "accountType": "hitepari-aws-account", "challengeDestructiveActions": false, "cloudProvider": "aws", "environment": "hitepari-aws-account", "name": "hitepari-aws-account", "permissions": {}, "primaryAccount": false, "requiredGroupMembership": [], "type": "aws" } ]