noqdev / iambic

IAMbic is Version-Control for IAM. It centralizes and simplifies cloud access and permissions. It maintains an eventually consistent, human-readable, bi-directional representation of IAM in Git.
https://iambic.org
Apache License 2.0
281 stars 26 forks source link

Fixed issue #610 on prompting user they are not using an account capable of setting up AWS Organization #611

Open smoy opened 1 year ago

smoy commented 1 year ago

What changed?

Rationale

How was it tested?

If it was manually verified, list the instructions for your reviewers to follow.

export AWS env variable of a member account. get the message.

2023/08/23 14:30:28 [error    ] If you would like to use AWS Organizations, the IAMbic hub account you
configured must be the same AWS account as your AWS Organization.
Please follow AWS guide to setup an AWS organization first. If you already have an organization setup,
make sure you are using the organization management account before running IAMbic setup

export AWS env variable of a organization account, proceed as expected:

We recommend configuring IAMbic with AWS Organizations, but you may also manually configure accounts.
? What would you like to configure in AWS? AWS Organizations

What is the AWS Organization ID?
It can be found here https://us-east-1.console.aws.amazon.com/organizations/v2/home/accounts
? AWS Organization ID:  <redacted>
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -9.82% :warning:

Comparison is base (2e003f7) 83.04% compared to head (ddc1e5a) 73.23%. Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #611 +/- ## ========================================== - Coverage 83.04% 73.23% -9.82% ========================================== Files 105 105 Lines 12587 12587 ========================================== - Hits 10453 9218 -1235 - Misses 2134 3369 +1235 ``` | [Flag](https://app.codecov.io/gh/noqdev/iambic/pull/611/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev) | Coverage Δ | | |---|---|---| | [functional_tests](https://app.codecov.io/gh/noqdev/iambic/pull/611/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev) | `?` | | | [functional_tests_config_discovery](https://app.codecov.io/gh/noqdev/iambic/pull/611/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev) | `?` | | | [unit_tests](https://app.codecov.io/gh/noqdev/iambic/pull/611/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev) | `73.23% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev#carryforward-flags-in-the-pull-request-comment) to find out more. [see 51 files with indirect coverage changes](https://app.codecov.io/gh/noqdev/iambic/pull/611/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=noqdev)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.