File tree Expand file tree Collapse file tree 4 files changed +23
-18
lines changed Expand file tree Collapse file tree 4 files changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,17 @@ aws ssm put-parameter --name "/rds/POSTGRES_DB_NAME" --value "value" --type "Sec
4646### GitHub Parameters
4747
4848``` sh
49- aws ssm put-parameter --name " /github-action/CONFIG_TOKEN" --value " value" --type " SecureString"
50- aws ssm put-parameter --name " /github-action/CONFIG_URL" --value " value" --type " SecureString"
49+ aws ssm put-parameter --name " /github-action/GITHUB_ORG" --value " value" --type " SecureString"
50+ aws ssm put-parameter --name " /github-action/GITHUB_REPO" --value " value" --type " SecureString"
51+ aws ssm put-parameter --name " /github-action/GITHUB_TOKEN" --value " value" --type " SecureString"
5152```
5253
5354## Verifying Parameter Storage
5455
5556After adding the parameters, you can verify their storage in AWS Systems Manager Parameter Store using the following command:
5657
5758``` sh
58- aws ssm get-parameters --names " /rds/POSTGRES_USERNAME" " /rds/POSTGRES_PASSWORD" " /rds/POSTGRES_DB_NAME" " /github-action/CONFIG_TOKEN " " /github-action/CONFIG_URL " --with-decryption
59+ aws ssm get-parameters --names " /rds/POSTGRES_USERNAME" " /rds/POSTGRES_PASSWORD" " /rds/POSTGRES_DB_NAME" " /github-action/GITHUB_ORG " " /github-action/GITHUB_REPO " " /github-action/GITHUB_TOKEN " --with-decryption
5960```
6061
6162This command will display the values of the stored parameters, ensuring they have been added correctly.
Original file line number Diff line number Diff line change @@ -46,16 +46,17 @@ aws ssm put-parameter --name "/rds/POSTGRES_DB_NAME" --value "value" --type "Sec
4646### GitHub Parameters
4747
4848``` sh
49- aws ssm put-parameter --name " /github-action/CONFIG_TOKEN" --value " value" --type " SecureString"
50- aws ssm put-parameter --name " /github-action/CONFIG_URL" --value " value" --type " SecureString"
49+ aws ssm put-parameter --name " /github-action/GITHUB_ORG" --value " value" --type " SecureString"
50+ aws ssm put-parameter --name " /github-action/GITHUB_REPO" --value " value" --type " SecureString"
51+ aws ssm put-parameter --name " /github-action/GITHUB_TOKEN" --value " value" --type " SecureString"
5152```
5253
5354## Verifying Parameter Storage
5455
5556After adding the parameters, you can verify their storage in AWS Systems Manager Parameter Store using the following command:
5657
5758``` sh
58- aws ssm get-parameters --names " /rds/POSTGRES_USERNAME" " /rds/POSTGRES_PASSWORD" " /rds/POSTGRES_DB_NAME" " /github-action/CONFIG_TOKEN " " /github-action/CONFIG_URL " --with-decryption
59+ aws ssm get-parameters --names " /rds/POSTGRES_USERNAME" " /rds/POSTGRES_PASSWORD" " /rds/POSTGRES_DB_NAME" " /github-action/GITHUB_ORG " " /github-action/GITHUB_REPO " " /github-action/GITHUB_TOKEN " --with-decryption
5960```
6061
6162This command will display the values of the stored parameters, ensuring they have been added correctly.
Original file line number Diff line number Diff line change @@ -61,15 +61,17 @@ locals {
6161 ]
6262
6363 github_parameters = [
64- " CONFIG_TOKEN" ,
65- " CONFIG_URL"
64+ " GITHUB_ORG" ,
65+ " GITHUB_REPO" ,
66+ " GITHUB_TOKEN"
6667 ]
6768
68- postgres_username = data. aws_ssm_parameter . rds [" POSTGRES_USERNAME" ]. value
69- postgres_password = data. aws_ssm_parameter . rds [" POSTGRES_PASSWORD" ]. value
70- postgres_db_name = data. aws_ssm_parameter . rds [" POSTGRES_DB_NAME" ]. value
71- github_config_token = data. aws_ssm_parameter . github [" CONFIG_TOKEN" ]. value
72- github_config_url = data. aws_ssm_parameter . github [" CONFIG_URL" ]. value
69+ postgres_username = data. aws_ssm_parameter . rds [" POSTGRES_USERNAME" ]. value
70+ postgres_password = data. aws_ssm_parameter . rds [" POSTGRES_PASSWORD" ]. value
71+ postgres_db_name = data. aws_ssm_parameter . rds [" POSTGRES_DB_NAME" ]. value
72+ github_org = data. aws_ssm_parameter . github [" GITHUB_ORG" ]. value
73+ github_repo = data. aws_ssm_parameter . github [" GITHUB_REPO" ]. value
74+ github_token = data. aws_ssm_parameter . github [" GITHUB_TOKEN" ]. value
7375
7476 kong_parameters = {
7577 " KONG_ADMIN_LISTEN" = " 0.0.0.0:8001"
Original file line number Diff line number Diff line change @@ -365,9 +365,10 @@ module "kong_internal_dns_record" {
365365}
366366
367367module "github_runner" {
368- source = " ./modules/github-runner"
369- vpc_id = var. vpc_id
370- private_subnet_id = var. private_subnet_ids [0 ]
371- github_config_token = local. github_config_token
372- github_config_url = local. github_config_url
368+ source = " ./modules/github-runner"
369+ vpc_id = var. vpc_id
370+ private_subnet_id = var. private_subnet_ids [0 ]
371+ github_org = local. github_org
372+ github_repo = local. github_repo
373+ github_token = local. github_token
373374}
You can’t perform that action at this time.
0 commit comments