Services, Inc. or its affiliates. Twitter: #jawsug_cdk ϚϧνελοΫ։ൃ࣌ͷTips – ॥ґଘΛղফ͢Δ ελοΫͷ॥ґଘ: 2ͭͷελοΫ͕ޓ͍ͷStack exportΛࢀর͋͠͏ঢ়ଶ ParentStack ChildStack Security group Security group VPC Lambda Subnet IDΛࢀর Ingress rule Security group IDΛࢀর Ingress rule Error: 'Stack2' depends on 'Stack1' ({Stack2/Handler/ServiceRole/Resource}.addDependency({Stack1/Vpc/IsolatedSubnet1/RouteTableAssociation}),… ). Adding this dependency (Stack1 -> Stack2/Handler/SecurityGroup/Resource.GroupId) would create a cyclic reference. 12 ґଘؔͷํΛҙ࣮ࣝͨ͠Ͱճආ ྫ: ͜ͷґଘNG ґଘยํͷΈڐ͞ΕΔ ※ ্هͰճආͰ͖ͳ͍͜ͱɻGitHubͰIssueΛ୳͢ɾཱͯΔͷखɻ
Services, Inc. or its affiliates. Twitter: #jawsug_cdk Q. Stackͷίʔυ͕ࢄΒ͔͖ͬͯͨ • ϦιʔεΛϑϥοτʹϕλॻ͖͢Δͱɺೝෛՙ͕ߴ·Δ • Ϧιʔεͷґଘ͕ؔΘ͔ΓͮΒ͔ͬͨΓɺεΫϩʔϧྔ͕૿͑ͨΓ • OOPʹ͓͚ΔΫϥεઃܭͷॏཁੑʹྨࣅ • ந → ۩ମ ͷॱΛ͔Γ͍͢ͱײ͡Δਓଟ͍ (Օॻ͖ͱಉ͡) • ίϯετϥΫτΛͬͯߏԽ͢Δͷ͕͓͢͢Ί ü Ϧιʔεͷू߹Λҙຯͷ͋Δ୯ҐͰ·ͱΊΔ ü ϞδϡʔϧԽͷརΛڗड (࠶ར༻ੑɺநԽͳͲ) ü ID (ୈ2Ҿ) ͷָ໋໊͕ʹ (ҰҙੑΛอͭείʔϓ͕ڱ·ΔͨΊ) 14 ೝূ Storage Lambda API ID
Services, Inc. or its affiliates. Twitter: #jawsug_cdk ೝূ Storage Lambda API ίϯετϥΫτͰίʔυΛߏԽ͢Δ 15 ↑ίϨ͘Β͍ͷཻͰ·ͱ·͍ͬͯΔͱύοτݟͰߏ͕Θ͔Γ͍͢ ͋ΔҙຯͰෳࡶ͞૿͢ͷͰɺํνʔϜͰٞ͢Δͱ 🙆 vs ίʔυྫ
Services, Inc. or its affiliates. Twitter: #jawsug_cdk ࢀߟࢿྉ • Best practices for developing and deploying cloud infrastructure with the AWS CDK • CDKʹؔ͢ΔϕετϓϥΫςΟεͷݪయɻ • JAWS CDKࢧ෦ͷΠϕϯτը • ࠃ։ൃऀͷݟڞ༗ͷɻຊͷCDKίϛϡχςΟੈքతʹݟͯ׆ൃʂ • cdk.dev • άϩʔόϧͳCDKίϛϡχςΟSlackɻͪ͜Β׆ൃͰɺ࣭͕ٞඈͼަ͍ͬͯ·͢ • Twitter CDK JP Community • ίϛϡχςΟࢀՃऀΛϑΥϩʔ͢Δͱ͍Ζ͍Ζͳҙݟ͕͑·͢ɻ։ൃऀͷϒϩάಛʹࢀߟʹͳΔʂ • The CDK Book • CDKʹؔ͢Δ͕ࣝཏతʹ·ͱ·ͬͨॻ੶ɻCDKϚχΞͳΒങͬͯଛͳ͍ͣ 30