Slide 1

Slide 1 text

CodeCatalyst in Action: Automating PR Creation for Route 53 and IAM Identity Center Management Takashi Yamaguchi AWS Community Builder(Security&Identity), AWS UG Leader JAWS-UG Chiba

Slide 2

Slide 2 text

About Me Takashi Yamaguchi SMS Co.,ltd SRE - My favorite AWS service - Sales、Security Hub - AWS Community Builder(Security & Identity) - CoreMember: JAWS-UG Chiba 2 Photo by SRE NEXT Staff

Slide 3

Slide 3 text

Agenda - Current Operation(Route53&Identity Center) - Constraints on CodeCatalyst - Results of PoC CodeCatalyst + Amazon Q with production code - Takeaway 3

Slide 4

Slide 4 text

Agenda - Current Operation(Route53&Identity Center) - Constraints on CodeCatalyst - Results of PoC CodeCatalyst + Amazon Q with production code - Takeaway 4

Slide 5

Slide 5 text

Motivation for this PoC - SRE team manages Route53 and IdC - Development team submits change requests via GitHub Issues. - Route53 and IdC are managed using IaC and have CI/CD - If the development team creates PRs instead of issues, and the SRE team reviews them, I think it could be democratized. - I find it difficult for the development team to create PR. - If PRs can be created from issues, the cognitive load will be reduced. 5

Slide 6

Slide 6 text

AWS Blog Posts 6 https://aws.amazon.com/jp/about-aws/whats-new/2024/06/amazon-codecatalyst-github-cloud-bitbucket-cloud-q/

Slide 7

Slide 7 text

Agenda - Current Operation(Route53&Identity Center) - Constraints on CodeCatalyst - Results of PoC CodeCatalyst + Amazon Q with production code - Takeaway 7

Slide 8

Slide 8 text

Amazon Q Developer quotas 8 https://aws.amazon.com/q/developer/pricing/?nc1=h_ls

Slide 9

Slide 9 text

Amazon CodeCatalyst quotas Up to 3 free plan builder IDs can be linked to 1 AWS account. 9

Slide 10

Slide 10 text

GenerativeAI must be enabled 10 Enable Generative AI in the Space settings

Slide 11

Slide 11 text

Agenda - Current Operation(Route53&Identity Center) - Constraints on CodeCatalyst - Results of PoC CodeCatalyst + Amazon Q with production code - Takeaway 11

Slide 12

Slide 12 text

How to create a PR from an Issue in CodeCatalyst 12

Slide 13

Slide 13 text

Route53 IaC codes 13

Slide 14

Slide 14 text

Common operational tasks 14 - Add DNS records - Importing a newly registered domain

Slide 15

Slide 15 text

Common operational tasks 15 - Add DNS records - Importing a newly registered domain

Slide 16

Slide 16 text

Route53 example:1 Issue 16

Slide 17

Slide 17 text

Route53 example:1 PR 17

Slide 18

Slide 18 text

Route53 example:2 Issue 18

Slide 19

Slide 19 text

Route53 example:2 PR 19

Slide 20

Slide 20 text

IdC Description of IaC codes 20

Slide 21

Slide 21 text

IdC Description of IaC codes 21 List

Slide 22

Slide 22 text

IdC Description of IaC codes 22 List

Slide 23

Slide 23 text

Common operational tasks 23 - Add User privilege - Delete User privilege - Adding a new User

Slide 24

Slide 24 text

Common operational tasks 24 - Add User privilege - Delete User privilege - Adding a new User

Slide 25

Slide 25 text

IdC example:1 Issue 25

Slide 26

Slide 26 text

IdC example:1 PR(assignment) 26

Slide 27

Slide 27 text

IdC example:1 PR(assignment) 27

Slide 28

Slide 28 text

IdC example:1 PR(User) 28

Slide 29

Slide 29 text

IdC example:2 Issue 29

Slide 30

Slide 30 text

IdC example:2 PR(assignment) 30

Slide 31

Slide 31 text

IdC example:2 PR(User) 31

Slide 32

Slide 32 text

IdC example:3 Issue 32

Slide 33

Slide 33 text

IdC example:3 PR(assignment) 33

Slide 34

Slide 34 text

IdC example:3 PR(User) 34

Slide 35

Slide 35 text

IdC example:4 Issue 35

Slide 36

Slide 36 text

IdC example:4 Tasks 36

Slide 37

Slide 37 text

IdC example:4 PR(assignment) 37

Slide 38

Slide 38 text

IdC example:4 PR(User) 38

Slide 39

Slide 39 text

IdC example:5 Issue 39

Slide 40

Slide 40 text

IdC example:4 Tasks 40

Slide 41

Slide 41 text

IdC example:5 PR(assignment) 41

Slide 42

Slide 42 text

IdC example:5 PR(User) 42

Slide 43

Slide 43 text

IdC example:6 Issue 43

Slide 44

Slide 44 text

IdC example:6 PR(assignment) 44

Slide 45

Slide 45 text

IdC example:6 PR(User) 45

Slide 46

Slide 46 text

IdC example:7 Issue 46

Slide 47

Slide 47 text

IdC example:7 PR(assignment) 47

Slide 48

Slide 48 text

IdC example:7 PR(User) 48

Slide 49

Slide 49 text

IdC example:8 Issue 49

Slide 50

Slide 50 text

IdC example:8 PR(assignment) 50

Slide 51

Slide 51 text

IdC example:8 PR(User) 51

Slide 52

Slide 52 text

IdC example:9 Issue 52

Slide 53

Slide 53 text

IdC example:9 PR(assignment) 53

Slide 54

Slide 54 text

IdC example:9 PR(User) 54

Slide 55

Slide 55 text

Agenda - Current Operation(Route53&Identity Center) - Constraints on CodeCatalyst - Results of PoC CodeCatalyst + Amazon Q with production code - Takeaway 55

Slide 56

Slide 56 text

Takeaway - If it is based on resources, Amazon Q can generate code without any problems. - There were patterns where the instructions to add to the list or add if it does not exist did not generate accurate codes. - If you intend to fix it with PR, Amazon Q will generate code at a level that is not a problem. 56