Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWS Management Services

AWS Management Services

JAWSUG Yokohama #73

Control Tower, IAM Identity Center, Organizations

Avatar for Michael H. Oshita

Michael H. Oshita

September 03, 2024
Tweet

More Decks by Michael H. Oshita

Other Decks in Technology

Transcript

  1. AWS Organizations ஫ҙ఺ “Unable to create the environment. You must

    verify your account before accessing CloudShell. To verify your account, contact AWS Support .” ৽ن࡞੒ΞΧ΢ϯτ͸͍Ζ͍Ζ੍ݶ͞ΕΔ৔߹͕͋Δɻverify͕ඞཁ ͩͬͨΓquota͕ஶ͘͠௿͔ͬͨΓɻ → Service Quotas request templatesͰΞΧ΢ϯτ࡞੒࣌ʹQuotaͷ ্ݶ؇࿨ΛϦΫΤετ͢ΔςϯϓϨʔτΛ࢖ͬͨΓ΋Ͱ͖Δ
  2. • چAWS Single Sign-On • IAMϢʔβʔΛഇࢭ͠ɺSSOϢʔβʔͰSSOϩάΠϯ • Identity Source΋બ୒Մೳ •

    Identity Center • Active Directory • ֎෦Identity Provider (IdP) - GoogleϩάΠϯ౳ AWS IAM Identity Center
  3. AWS IAM Identity Center Users x Groups x Permission Sets

    x Accounts ΞϓϦͷׂΓ౰ͯϩʔϧ (Permission Set) ʮʓʓΞϓϦBASEʯάϧʔϓʹଐ͍ͯ͠Δ৔߹ɺʓʓΞϓϦ༻ͷ֤؀ڥ ʢ։ൃ/εςʔδϯά/ڭҭ/ຊ൪ʣͷAWSΞΧ΢ϯτʹ ReadOnlyAccess ͕ Մೳ ʮʓʓΞϓϦ։ൃʯάϧʔϓʹଐ͍ͯ͠Δ৔߹ɺ։ൃ/εςʔδϯά؀ڥͷ AWSΞΧ΢ϯτʹରͯ͠ AdministratorAccess ͕Մೳ ʮʓʓΞϓϦADMINʯάϧʔϓʹଐ͍ͯ͠Δ৔߹ɺڭҭ/ຊ൪؀ڥͷAWSΞ Χ΢ϯτʹରͯ͠ AdministratorAccess ͕Մೳ ʮSandboxʯͷׂΓ౰ͯϩʔϧ͸ɺʮSandboxʯAWSΞΧ΢ϯτʹରͯ͠ AdministratorAccess ͕Մೳ
  4. AWS IAM Identity Center ஫ҙ఺ • Ϧʔϯδϣϯ࡞੒ʹ஫ҙʢus-east-1Ͱ࡞ͬͪΌͬͨʣ • Access Portal

    URL (https://s9.awsapps.com/start )ઃఆ͸1ճͷΈʂ • TerraformͰsso user࡞੒ޙʹࣗಈϝʔϧૹ৴͸͞Εͳ͍ɻAPIͷ੍ݶΒ͍͠ɻ • https://github.com/hashicorp/terraform-provider-aws/issues/28102 • ॳճϩάΠϯ࣌ʹύεϫʔυઃఆϦϯΫ͸ϝʔϧૹ৴͞ΕΔ • ύεϫʔυڧ౓౳ͷཁ݅͸ݻఆ • https://docs.aws.amazon.com/singlesignon/latest/userguide/password- requirements.html
  5. AWS Control Tower • ૊৫ͷ౷߹؅ཧ • ΞΧ΢ϯτൃߦ • SCP؅ཧʢControls͸چGuardrailsʣ •

    preventativeʢ༧๷ʣ • detectiveʢݕग़ʣ • proactiveʢϓϩΞΫςΟϒʣ • ࣮ଶ͸Con fi g rules, Security Hub΍Cloudformation Hooks/Guard
  6. AWS Control Tower • SCP͸શ513छྨʂʢ2024/9/3ݱࡏʣ • Ͳ͏ద༻͢Δ͔ʁ • Strongly recommendʢڧ͘ਪ঑͞ΕΔʣcontrol͸جຊઃఆ͢Δ

    • AWS Foundational Best practices౳ͷΨΠυϥΠϯΛݩʹ͢Δ • ཁ݅ʹԠͯ͡ݸผOUΛઃఆ͍ͯ͘͠
  7. AWS Control Tower • universal controls • શͯͷOUʹద༻͍ͨ͠control • main_ou_controls

    • Sandbox OU͸ಛघͳҝʢޙड़ʣɺ
 ෼͚ͯΔ • Individual ou controls • ݸผʹద༻͍ͨ͠OU Iac (Terraform) Controlͷઃఆ
  8. AWS Control Tower • Map͔Β͍͍ײ͡ʹՃ޻ͨ͠controlͱou ͷηοτΛ࡞੒ • ou x controlͰͦΕͧΕద༻

    • ਌OUʹద༻ͯ͠΋ࢠOUʹ͸͸ޮ͔ͳ͍ • ݁ߏͳ૊Έ߹ΘͤʹͳΔͷͰ࣌ؒ͸͔͔Δ • Terraform΍CI/CDͷద੾ͳλΠϜΞ΢ τઃఆ͕ඞཁ Iac (Terraform) Controlͷ࣮૷
  9. AWS Control Tower ஫ҙ఺ “Error: updating ControlTower Landing Zone (4BN0Z52M0WTJOIGE):

    operation error ControlTower: UpdateLandingZone, https response error StatusCode: 400, RequestID: af1803fb-35c6-40c6-9e2c-777db5d8956c, ValidationException: The LandingZoneManifest that you provided is not compliant with the LandingZoneManifest schema. For information about formatting, see https://docs.aws.amazon.com/controltower/latest/ userguide/lz-api-launch.html.”
 Control TowerͷLanding zoneΛTerraformͰ؅ཧ͠Α͏ͱͨ͠ΒΤϥʔ͕ɻݱঢ়͸landing zoneʹݶͬͯ͸؅ཧର৅֎ʹ͢ΔͷΛਪ঑͢Δɻcontrol౳͸ok ɾͦ΋ͦ΋ৄࡉAPIυΩϡϝϯτͷෆ଍ ɾTerraform issue ɾhttps://github.com/hashicorp/terraform-provider-aws/issues/35763
  10. AWS Control Tower ஫ҙ఺ Control Tower༗ޮԽʹ࡞੒͞ΕΔSecurity OUʢLog Archive΍ Audit account༻ʣ͸ಛผʹઃܭ͞Ε͓ͯΓɺಛఆͷ੍໿΍ඞਢͷ

    control͕ద༻͞Ε͍ͯΔͨΊɺ௥Ճͷબ୒తcontrolΛద༻͠Α͏ ͱ͢Δͱڝ߹ͯ͠ΤϥʔʹͳΔՄೳੑ͋Γ →ɹSecurity OU͸ผ࿮ͱͯ͠ѻ͏
  11. AWS Control Tower ஫ҙ఺ ControlͷARN͸چGuardrailͷํ͕෼͔Γ΍͔ͬͨ͢ arn:aws:controltower:us-east-1::control/AWS- GR_CLOUDTRAIL_CHANGE_PROHIBITED ࠓ͸ϥϯμϜจࣈྻ͕ࣝผࢠɻ͔͠΋Ϧʔδϣϯ୯ҐͰҧ͏ʂ😱 CT.CLOUDFORMATION.PR.1 →

    ɾarn:aws:controltower:us-east-1::control/WTDSMKDKDNLE ɾarn:aws:controltower:ap-northeast-1::control/TUJJPJIYTMNX https://docs.aws.amazon.com/controltower/latest/controlreference/control-region- tables.html