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 Assume Role docs and tests #2956

Merged
merged 3 commits into from
Nov 21, 2017
Merged

Conversation

JordonPhillips
Copy link
Member

This updates the assume role documentation and adds tests in response
to the assume role changes in boto/botocore#1313

It additionally adds changelog entries that will result in a minor
version bump.

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just had some small suggestions about wordings.

* ``source_profile`` - The AWS CLI profile that contains credentials we should
use for the initial ``assume-role`` call.
* ``source_profile`` - The AWS CLI profile that contains credentials /
configuration we should use for the initial ``assume-role`` call. This
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to remove the use of "we" to make it more third person or instructive.

* ``source_profile`` - The AWS CLI profile that contains credentials /
configuration we should use for the initial ``assume-role`` call. This
profile may be another profile configured to use ``assume-role``, though
if static credentials are present in the profile they will be preferred.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rephrase this from "preferred" to something a long the lines of taking precedence over role_arn/credential_source

the initial ``assume-role`` call. This parameter cannot be provided
alongside ``source_profile``. Valid values are:
* ``Environment`` to pull source credentials from environment variables.
* ``Ec2InstanceMetadta`` to use the EC2 instance role as source credentials.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ec2InstanceMetadta -> Ec2InstanceMetadata

[profile crossaccount]
role_arn=arn:aws:iam:...
credential_source=Ec2InstanceMetadata

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it makes sense to explain what this example does exactly in obtaining credentials?

@codecov-io
Copy link

codecov-io commented Nov 14, 2017

Codecov Report

Merging #2956 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2956   +/-   ##
========================================
  Coverage    95.69%   95.69%           
========================================
  Files          159      159           
  Lines        12031    12031           
========================================
  Hits         11513    11513           
  Misses         518      518

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f2c17f...5497031. Read the comment docs.

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 Looks good to me

@JordonPhillips
Copy link
Member Author

Cool. I squashed that extra doc commit. This will be merged alongside the relevant botocore pr.

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 🚢

@JordonPhillips JordonPhillips merged commit f366502 into aws:develop Nov 21, 2017
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
* Enabled ability to provide tags as list in samconfig.toml file

* Removed trailing white spaces and reformatted code

* Added integration test for tags as list deploy command

* Added integration test for tags as string from samconfig.toml

* Fixed Appveyer error by removing s3 info

Co-authored-by: Mohamed Elasmar <71043312+moelasmar@users.noreply.github.com>
Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com>
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.

3 participants