Share
Embed
AWS Management Services
JAWSUG Yokohama #73
Control Tower, IAM Identity Center, Organizations
Michael H. Oshita
September 03, 2024
Transcript
21 slides
-
AWS Management services 1. Control Tower 2. IAM Identity Center
3. Organizations -
• ϚϧνΞΧϯτઓུ • ڥͷཧ • νʔϜɾϢʔβʔͷཧ • ηΩϡϦςΟͱ౷੍ͷཧ • ίετཧ
AWS Organizations -
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ͷ ্ݶ؇ΛϦΫΤετ͢ΔςϯϓϨʔτΛͬͨΓͰ͖Δ -
• چAWS Single Sign-On • IAMϢʔβʔΛഇࢭ͠ɺSSOϢʔβʔͰSSOϩάΠϯ • Identity SourceબՄೳ •
Identity Center • Active Directory • ֎෦Identity Provider (IdP) - GoogleϩάΠϯ AWS IAM Identity Center -
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 ͕Մೳ -
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 -
AWS Control Tower • ৫ͷ౷߹ཧ • ΞΧϯτൃߦ • SCPཧʢControlsچGuardrailsʣ •
preventativeʢ༧ʣ • detectiveʢݕग़ʣ • proactiveʢϓϩΞΫςΟϒʣ • ࣮ଶCon fi g rules, Security HubCloudformation Hooks/Guard -
AWS Control Tower • SCPશ513छྨʂʢ2024/9/3ݱࡏʣ • Ͳ͏ద༻͢Δ͔ʁ • Strongly recommendʢڧ͘ਪ͞ΕΔʣcontrolجຊઃఆ͢Δ
• AWS Foundational Best practicesͷΨΠυϥΠϯΛݩʹ͢Δ • ཁ݅ʹԠͯ͡ݸผOUΛઃఆ͍ͯ͘͠ -
AWS Control Tower • universal controls • શͯͷOUʹద༻͍ͨ͠control • main_ou_controls
• Sandbox OUಛघͳҝʢޙड़ʣɺ ͚ͯΔ • Individual ou controls • ݸผʹద༻͍ͨ͠OU Iac (Terraform) Controlͷઃఆ -
AWS Control Tower • Map͔Β͍͍ײ͡ʹՃͨ͠controlͱou ͷηοτΛ࡞ • ou x controlͰͦΕͧΕద༻
• OUʹద༻ͯ͠ࢠOUʹޮ͔ͳ͍ • ݁ߏͳΈ߹ΘͤʹͳΔͷͰ͔͔࣌ؒΔ • TerraformCI/CDͷదͳλΠϜΞ τઃఆ͕ඞཁ Iac (Terraform) Controlͷ࣮ -
AWS Control Tower Accont Factory for Terraform • accountൃߦࣗମAWSެࣜͷιϦϡʔγϣϯͰࣗಈԽ •
ෳࡶͳҹ • 4ͭͷϦϙδτϦ͕ඞཁ -
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ʹݶͬͯཧର֎ʹ͢ΔͷΛਪ͢Δɻcontrolok ɾͦͦৄࡉAPIυΩϡϝϯτͷෆ ɾTerraform issue ɾhttps://github.com/hashicorp/terraform-provider-aws/issues/35763 -
AWS Control Tower ҙ Control Tower༗ޮԽʹ࡞͞ΕΔSecurity OUʢLog Archive Audit account༻ʣಛผʹઃܭ͞Ε͓ͯΓɺಛఆͷ੍ඞਢͷ
control͕ద༻͞Ε͍ͯΔͨΊɺՃͷબతcontrolΛద༻͠Α͏ ͱ͢Δͱڝ߹ͯ͠ΤϥʔʹͳΔՄೳੑ͋Γ →ɹSecurity OUผͱͯ͠ѻ͏ -
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