ハンズオン(簡易版): Organizations基礎(アカウント招待)

クリーンアップ1.1 [招待アカウントroot]. Organizations組織からの離脱 (CloudShell)

手順の目的

Organizations組織からAWSアカウントを離脱します。

設定値の指定

(なし)

設定値の確認

(なし)

処理の実行

(特になし)

Organizations組織から離脱します。

コマンド:

aws organizations leave-organization 

結果(例):

(出力なし)

注釈

'An error occurred (ConstraintViolationException) when calling the LeaveOrganization operation: You cannot remove an account from the organization if the account owner has not completed phone pin verification.'というエラーが表示される場合は、以下の手順を踏 む必要があります。

  • 離脱するAWSアカウントのOrganizationsダッシュボード (https://console.aws.amazon.com/organizations/v2/home/dashboard )にアクセスする。

  • "この組織を離れる"(ボタン)をクリックします。

    • "組織を離れることを確認しますか?"(ポップアップ)が表示されます。

  • "アカウントのサインアップステップを完了"(リンク)をクリックします。

    • "AWSにサインアップ"(画面)が表示されます。

  • 以下を入力します。

    • 国または地域コード: 日本 (+81)

    • 電話番号:

    • 内線: (通常は空欄)

    • セキュリティチェック: (表示されている文字を入力)

  • "今すぐ呼び出し - (ステップ 4/5)"(ボタン)をクリックします。

    • PIN番号が表示され、電話がかかってきます。

  • 電話に対して、表示されているPIN番号を入力します。

    • "AWSにサインアップ サポートプランを選択"(画面)が表示されます。

  • "サインアップを完了"(ボタン)をクリックします。

  • 再度コマンドを実行します。

完了確認

「Organizations組織に所属していない。」ことを確認します。

コマンド:

! aws organizations describe-organization \
  --query 'Organization.Arn' \
  --output text

結果(例):

An error occurred (AWSOrganizationsNotInUseException) when calling the DescribeOrganization operation: Your account is not a member of an organization.

手順の完了

(参考) マネジメントコンソールの確認

  • 左ペインの"AWSアカウント"をクリックします。

AWSアカウント(画面)

  • 組織が存在することを確認します。

課題

動作確認