-
Couldn't load subscription status.
- Fork 686
Move Lambda Vars to Parameter Store #941
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 35 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
736a854
fix(scale): Refactor Runner Type and Owner (#871)
mcaulifn 6e35845
feat: support multiple instance types (#898)
mcaulifn a768687
docs: fix lambda_security_group_ids incorrect description #738 (#902)
npalm 5b5ee3b
fix: scale down runners (#905)
npalm 8746249
chore: group upgrade lambda dependencies (#906)
npalm 7bda880
feat(runner): Move Lambda Vars to Parameter Store
mcaulifn 333eae7
Add test for ssm module (#1)
mcaulifn 65535fb
Removing KMS/GH Auth from scale-down
mcaulifn b460a1a
Merge branch 'mcaulifn/ssm' of https://github.com/mcaulifn/terraform-…
mcaulifn aecc383
Add SSM permissions to runner policy
mcaulifn c84ae6c
Allow custom key_id
mcaulifn d2b61f1
Fixing for loop
mcaulifn 8f34d71
Move SSM policy to Lambdas
mcaulifn 7d44ac8
Fixing function call
mcaulifn 66bd078
chore: Bump aws-sdk (#752) (#909)
dependabot[bot] 77c8e13
chore: Bump aws-sdk (#752) (#908)
dependabot[bot] fe0a126
chore: Bump aws-sdk (#752) (#887)
dependabot[bot] 174b4ca
chore: Bump aws-sdk (#752) (#885)
dependabot[bot] 0f1493f
chore: Bump aws-sdk (#752) (#889)
dependabot[bot] 5314469
chore: Bump aws-sdk (#752) (#892)
dependabot[bot] 640ef5f
chore: Bump aws-sdk (#752) (#907)
dependabot[bot] 1658635
chore: Bump aws-sdk (#752) (#864)
dependabot[bot] a401c0d
chore: Bump eslint in /modules/webhook/lambdas/webhook (#918)
dependabot[bot] 870280b
chore: Bump typescript (#929)
dependabot[bot] 0fdf8cf
chore: Bump @typescript-eslint/eslint-plugin (#928)
dependabot[bot] a6b9a29
chore: Bump typescript in /modules/webhook/lambdas/webhook (#926)
dependabot[bot] b5096bb
feat: Added support for white listing of repositories (#915)
ravenolf 7ac1a25
Need `,` after list item
mcaulifn cbf7a70
Move Lambda Policy to data resource
mcaulifn d8e6fbd
Merge branch 'develop' into mcaulifn/ssm
mcaulifn d46f9e2
Merge branch 'develop' into mcaulifn/ssm
mcaulifn 0c9aff5
Addressing PR comments, fixing lint
mcaulifn 3104d34
Refactoring Parameters to SSM Module
mcaulifn 7c09270
Merge branch 'develop' into mcaulifn/ssm
mcaulifn 4ea2a17
Fixing rebase
mcaulifn 19199e3
Using only key ARN as input value
mcaulifn 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,4 @@ | ||
| locals { | ||
| kms_key_id = var.kms_key_id == null && var.encrypt_secrets ? aws_kms_key.default[0].key_id : var.kms_key_id | ||
| } | ||
|
|
||
| resource "aws_kms_key" "default" { | ||
| count = var.manage_kms_key && var.encrypt_secrets ? 1 : 0 | ||
| is_enabled = true | ||
| tags = local.tags | ||
| } | ||
|
|
||
| resource "aws_kms_alias" "default" { | ||
| count = var.manage_kms_key && var.encrypt_secrets ? 1 : 0 | ||
| name = "alias/github-action-runners/${var.environment}" | ||
| target_key_id = aws_kms_key.default[0].key_id | ||
| data "aws_kms_key" "cmk" { | ||
| count = var.kms_key_id != null ? 1 : 0 | ||
| key_id = var.kms_key_id | ||
| } | ||
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 was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import { scaleDown } from './scale-runners/scale-down'; | ||
|
|
||
|
|
||
| export function run(): void { | ||
| scaleDown(); | ||
| } | ||
|
|
||
| run(); |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import { scaleUp } from './scale-runners/scale-up'; | ||
|
|
||
| const sqsEvent = { | ||
| Records: [ | ||
| { | ||
| messageId: 'e8d74d08-644e-42ca-bf82-a67daa6c4dad', | ||
| // eslint-disable-next-line max-len | ||
| receiptHandle: 'AQEBCpLYzDEKq4aKSJyFQCkJduSKZef8SJVOperbYyNhXqqnpFG5k74WygVAJ4O0+9nybRyeOFThvITOaS21/jeHiI5fgaM9YKuI0oGYeWCIzPQsluW5CMDmtvqv1aA8sXQ5n2x0L9MJkzgdIHTC3YWBFLQ2AxSveOyIHwW+cHLIFCAcZlOaaf0YtaLfGHGkAC4IfycmaijV8NSlzYgDuxrC9sIsWJ0bSvk5iT4ru/R4+0cjm7qZtGlc04k9xk5Fu6A+wRxMaIyiFRY+Ya19ykcevQldidmEjEWvN6CRToLgclk=', | ||
| // eslint-disable-next-line max-len | ||
| body: { "id": 19072, "repositoryName": "ErrBud", "repositoryOwner": "ActionsTest", "eventType": "check_run", "installationId": 5 }, | ||
| attributes: { | ||
| ApproximateReceiveCount: '1', | ||
| SentTimestamp: '1626450047230', | ||
| SequenceNumber: '18863115285800432640', | ||
| MessageGroupId: '19072', | ||
| SenderId: 'AROA5KW7SQ6TTB3PW6WPH:cicddev-webhook', | ||
| MessageDeduplicationId: '0c458eeb87b7f6d2607301268fd3bf33dd898a49ebd888754ff7db510c4bff1e', | ||
| ApproximateFirstReceiveTimestamp: '1626450077251' | ||
| }, | ||
| messageAttributes: {}, | ||
| md5OfBody: '4aef3bd70526e152e86426a0938cbec6', | ||
| eventSource: 'aws:sqs', | ||
| eventSourceARN: 'arn:aws:sqs:us-west-2:916370655143:cicddev-queued-builds.fifo', | ||
| awsRegion: 'us-west-2' | ||
| } | ||
| ] | ||
| }; | ||
| export function run(): void { | ||
| scaleUp(sqsEvent.Records[0].eventSource, sqsEvent.Records[0].body); | ||
| } | ||
|
|
||
| run(); |
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.
Uh oh!
There was an error while loading. Please reload this page.