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
46
46
### GitHub Parameters
47
47
48
48
``` 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"
51
52
```
52
53
53
54
## Verifying Parameter Storage
54
55
55
56
After adding the parameters, you can verify their storage in AWS Systems Manager Parameter Store using the following command:
56
57
57
58
``` 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
59
60
```
60
61
61
62
This 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
46
46
### GitHub Parameters
47
47
48
48
``` 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"
51
52
```
52
53
53
54
## Verifying Parameter Storage
54
55
55
56
After adding the parameters, you can verify their storage in AWS Systems Manager Parameter Store using the following command:
56
57
57
58
``` 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
59
60
```
60
61
61
62
This 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 {
61
61
]
62
62
63
63
github_parameters = [
64
- " CONFIG_TOKEN" ,
65
- " CONFIG_URL"
64
+ " GITHUB_ORG" ,
65
+ " GITHUB_REPO" ,
66
+ " GITHUB_TOKEN"
66
67
]
67
68
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
73
75
74
76
kong_parameters = {
75
77
" 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" {
365
365
}
366
366
367
367
module "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
373
374
}
You can’t perform that action at this time.
0 commit comments