Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template with available instance types #340

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

SoManyHs
Copy link
Contributor

@SoManyHs
Copy link
Contributor Author

SoManyHs commented Oct 16, 2017

Previous behavior:

~/go/src/github.com/aws/amazon-ecs-cli(master)$ ecs-cli up --instance-type f1.2xlarge --capability-iam --keypair my-keypair --force
INFO[0000] Created cluster                               cluster=test region=us-west-2
INFO[0000] Waiting for your CloudFormation stack resources to be deleted... 
INFO[0000] Cloudformation stack status                   stackStatus="DELETE_IN_PROGRESS"
INFO[0061] Cloudformation stack status                   stackStatus="DELETE_IN_PROGRESS"
INFO[0121] Cloudformation stack status                   stackStatus="DELETE_IN_PROGRESS"
FATA[0151] Error executing 'up': ValidationError: Parameter EcsInstanceType failed to satisfy constraint: must be a valid EC2 instance type.
	status code: 400, request id: ***-61f64caf175f 

With change:

~/go/src/github.com/aws/amazon-ecs-cli(update_instance_types)$ ecs-cli up --instance-type f1.2xlarge --capability-iam --keypair hhh-2
INFO[0000] Created cluster                               cluster=test region=us-west-2
INFO[0000] Waiting for your cluster resources to be created... 
INFO[0001] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
INFO[0061] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
INFO[0121] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"

~/go/src/github.com/aws/amazon-ecs-cli(update_instance_types)$ aws ecs list-container-instances --cluster test
{
    "containerInstanceArns": [
        "arn:aws:ecs:us-west-2:<my_account_id>:container-instance/********-****-****-****-c646981a7789"
    ]
}

~/go/src/github.com/aws/amazon-ecs-cli(update_instance_types)$ aws ec2 describe-instances --instance-ids i-****************

...
=>  "InstanceType": "f1.2xlarge", 

@SoManyHs SoManyHs merged commit 0d6a6e7 into aws:dev Oct 18, 2017
@SoManyHs SoManyHs deleted the update_instance_types branch October 18, 2017 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants