-
Notifications
You must be signed in to change notification settings - Fork 2
OT-14 chore setup terraform and cicd #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
853ab90
[OT-14] [CHORE]: deploy-ai AWS ์ธ์ฆ์ OIDC role assume ๋ฐฉ์์ผ๋ก ์ ํ
arlen02-01 cb4d1e7
[OT-14] [FEAT]: deploy-ec2-docker ์ธํ๋ผ ํ๋ผ๋ฏธํฐยทDB ๋น๋ฐ ์กฐํ ๊ธฐ๋ฐ ๋ฐฐํฌ๋ก ๊ฐ์
arlen02-01 97608ad
[OT-14] [FEAT]: monitoring ๋ฐฐํฌ ํ๊น ์๋ ํด์ ๋ฐ Grafana Secret Manager ์ฐ๋
arlen02-01 23aed85
[OT-14] [FEAT]: rabbitmq ์ฌ์ฉ์ ์ค์ ์ Secrets Manager ๋๊ธฐํ ๋ฐฉ์์ผ๋ก ์ ํ
arlen02-01 7061e4c
[OT-14] [CHORE]: dev ์ธํ๋ผ ๊ธฐ์ค ๋ฐฐํฌ ์ํฌํ๋ก์ฐ ์ ํฉ์ฑ ๋ฐ ๋ณด์ ๊ฐ์
arlen02-01 3e12138
[OT-14] [FIX]: deploy-ai monitoring ์กฐํ๋ฅผ ํ๋ก์ ํธ/ํ๊ฒฝ ํ๊ทธ๋ก ํ์
arlen02-01 c456878
[OT-14] fix(ci): harden SSM deploys and align workflows with terraforโฆ
arlen02-01 b254580
[OT-14] fix(ci): align ai env parameter path with dev scoped ssm
arlen02-01 4abe536
[OT-14] [CHORE]: deploy-ec2-docker OIDC ๋๋ฒ๊ทธ ๊ฒ์ฆ ์คํ
์ถ๊ฐ
arlen02-01 d6cd836
[OT-14] ci: wait for ec2 running and ssm online before send-command
arlen02-01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐งฉ Analysis chain
๐ Script executed:
cat -n .github/workflows/deploy-ai.yml | head -100Repository: OpenTheTaste/backend
Length of output: 4350
๐ Script executed:
Repository: OpenTheTaste/backend
Length of output: 4593
๐ Web query:
aws-actions configure-aws-credentials@v4 default role-duration-seconds OIDC session๐ก Result:
In the aws-actions/configure-aws-credentials action (including v4), the role-duration-seconds input controls the duration of the assumed role session in seconds [1][2]. Key details regarding this setting include: Default Value: The default duration is 1 hour (3600 seconds) [1][3]. Configurability: You can adjust this value by providing an integer to the role-duration-seconds input [1][3]. Constraints: The requested duration cannot exceed the MaxSessionDuration setting configured for the specific IAM Role in AWS [1][4]. Acceptable values generally range from 15 minutes (900 seconds) to 12 hours (43200 seconds), depending on the IAM role's configuration [3][5]. OIDC Context: When using OIDC to assume a role, the same 1-hour default applies [6][7]. If you require a session longer than 1 hour, you must explicitly set role-duration-seconds to your desired value (up to the role's maximum) [6]. If you encounter an error stating that the requested duration exceeds the maximum, ensure that the IAM Role's MaxSessionDuration in the AWS console or via CLI/API is set high enough to accommodate your requested duration [4][5].
Citations:
OIDC ์ธ์ ๊ธธ์ด๋ฅผ ๋ฐฐํฌ ์ต๋ ์๊ฐ์ ๋ง์ถฐ ๋ช ์ํด์ผ ํฉ๋๋ค.
ํ์ฌ
configure-aws-credentials์ก์ ์ ๊ธฐ๋ณธ OIDC ์ธ์ ๊ธฐ๊ฐ์ 3,600์ด(1์๊ฐ)์ด์ง๋ง, ๋ผ์ธ 235์ SSM ๋ช ๋ น ํ์์์์ 7,200์ด์ด๊ณ ๋ผ์ธ 244-270์ ํด๋ง ๋ฃจํ๋ ์ต๋ 7,200์ด๊น์ง ์ง์๋ฉ๋๋ค. ์ด ๊ฒฝ์ฐ ๋ฐฐํฌ๊ฐ 1์๊ฐ์ ์ด๊ณผํ๋ฉด ๋ผ์ธ 245, 259, 273์ AWS API ํธ์ถ์ดExpiredToken์ค๋ฅ๋ก ์คํจํฉ๋๋ค.role-duration-seconds๋ฅผ 7,200์ด ์ด์์ผ๋ก ์ค์ ํ๊ณ , ํด๋น IAM ์ญํ ์MaxSessionDuration์ด ์ถฉ๋ถํ ๊ตฌ์ฑ๋์ด ์๋์ง ํ์ธํ์ธ์.๐ค Prompt for AI Agents