appcelerator-archive / amp

** THIS PROJECT IS STOPPED ** An open source CaaS for Docker, batteries included.
http://appcelerator.io
Apache License 2.0
81 stars 28 forks source link

allow aws credentials merged in .aws/config #1774

Closed ndegory closed 7 years ago

ndegory commented 7 years ago

AMP-101

Verification

  1. non regression test With a "normal" .aws config (aws_access_key_id and aws_secret_access_key in credentials, region in config), run:

    make build-cli build-plugins
    amp cluster create --provider aws --aws-stackname STACK_NAME --aws-parameter KeyName=KEY_PAIR
    # It should start the deployment, Ctrl-C after a few seconds
    amp cluster rm --provider aws --aws-stackname STACK_NAME
  2. fix "config only" credentials config backup your ~/.aws folder modify it to merge all information from the credentials file into the config file. Run the commands above once more.

    make build-cli build-plugins
    amp cluster create --provider aws --aws-stackname STACK_NAME --aws-parameter KeyName=KEY_PAIR

    You can now restore your ~/.aws folder if needed