Skip to content

Commit

Permalink
feat: update to AL2 Runtime (#830)
Browse files Browse the repository at this point in the history
* update to AL2 Runtime
---------

Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
markussiebert and github-actions authored Sep 13, 2023
1 parent 35c8414 commit 26c05fc
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ fixme.forEach((wf) => {
uses: 'actions/[email protected]',
with: {
name: 'gobuild',
path: 'lambda/cdk-sops-secrets',
path: 'lambda/bootstrap',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![pypi downloads](https://img.shields.io/pypi/dw/cdk-sops-secrets)](https://pypi.org/project/cdk-sops-secrets)<br>

[![codecov](https://codecov.io/gh/markussiebert/cdk-sops-secrets/branch/main/graph/badge.svg?token=OT7P7HQHXB)](https://codecov.io/gh/markussiebert/cdk-sops-secrets)&nbsp;&nbsp;
[![security-vulnerabilities](https://img.shields.io/github/issues-search/markussiebert/cdk-sops-secrets?color=%23ff0000&label=security-vulnerabilities&query=is%3Aissue%20is%3Aopen%20label%3A%22security%20vulnerability%22)](https://github.com/markussiebert/cdk-sops-secrets/issues?q=is%3Aissue+is%3Aopen+label%3A%22security+vulnerability%22)&nbsp;
[![security-vulnerabilities](https://img.shields.io/github/issues-search/markussiebert/cdk-sops-secrets?color=%23ff0000&label=security-vulnerabilities&query=is%3Aissue%20is%3Aopen%20label%3A%22Mend%3A%20dependency%20security%20vulnerability%22)](https://github.com/markussiebert/cdk-sops-secrets/issues?q=is%3Aissue+is%3Aopen+label%3A%22security+vulnerability%22)&nbsp;

## Introduction

Expand Down
14 changes: 7 additions & 7 deletions scripts/lambda-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export GOOS=linux
export GOARCH=amd64
export GOPROXY=https://proxy.golang.org,direct
export CGO_ENABLED=0
go build -trimpath -buildvcs=false -ldflags="-s -w -buildid="
ls -la cdk-sops-secrets
shasum cdk-sops-secrets
touch -t 202002020000 cdk-sops-secrets
chmod 755 cdk-sops-secrets
ls -la cdk-sops-secrets
shasum cdk-sops-secrets
go build -trimpath -buildvcs=false -tags lambda.norpc -o bootstrap -ldflags="-s -w -buildid="
ls -la bootstrap
shasum bootstrap
touch -t 202002020000 bootstrap
chmod 755 bootstrap
ls -la bootstrap
shasum bootstrap
10 changes: 5 additions & 5 deletions scripts/lambda-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
BASEPATH=$(git rev-parse --show-toplevel)
mkdir -p "$BASEPATH/assets"
cd "$BASEPATH/lambda"
touch -t 202002020000 cdk-sops-secrets
chmod 755 cdk-sops-secrets
ls -la cdk-sops-secrets
sha1sum cdk-sops-secrets
zip -X9om "$BASEPATH/assets/cdk-sops-lambda.zip" cdk-sops-secrets
touch -t 202002020000 bootstrap
chmod 755 bootstrap
ls -la bootstrap
sha1sum bootstrap
zip -X9om "$BASEPATH/assets/cdk-sops-lambda.zip" bootstrap
sha1sum "$BASEPATH/assets/cdk-sops-lambda.zip"
ls -la "$BASEPATH/assets/cdk-sops-lambda.zip"
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ export class SopsSyncProvider extends SingletonFunction implements IGrantable {
scope.node.tryGetContext('sops_sync_provider_asset_path') ||
path.join(__dirname, '../assets/cdk-sops-lambda.zip'),
),
runtime: Runtime.GO_1_X,
handler: 'cdk-sops-secrets',
runtime: Runtime.PROVIDED_AL2,
handler: 'bootstrap',
uuid: 'SopsSyncProvider',
timeout: Duration.seconds(60),
environment: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"version": "15.0.0",
"files": {
"b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1": {
"3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256": {
"source": {
"path": "asset.b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip",
"path": "asset.3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip",
"objectKey": "3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
},
"57f9c7c2120dcf38a07108ffaeb8d5f9fceb772393939332dbd61bd4e738da16": {
"2ed3c6af0c33ee1b70e92c54b70afd7993ac159979bcca22c592b18511e323c1": {
"source": {
"path": "SecretIntegrationAsset.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "57f9c7c2120dcf38a07108ffaeb8d5f9fceb772393939332dbd61bd4e738da16.json",
"objectKey": "2ed3c6af0c33ee1b70e92c54b70afd7993ac159979bcca22c592b18511e323c1.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip"
"S3Key": "3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip"
},
"Role": {
"Fn::GetAtt": [
Expand All @@ -189,8 +189,8 @@
"SOPS_AGE_KEY": "AGE-SECRET-KEY-1EFUWJ0G2XJTJFWTAM2DGMA4VCK3R05W58FSMHZP3MZQ0ZTAQEAFQC6T7T3"
}
},
"Handler": "cdk-sops-secrets",
"Runtime": "go1.x",
"Handler": "bootstrap",
"Runtime": "provided.al2",
"Timeout": 60
},
"DependsOn": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"version": "15.0.0",
"files": {
"b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1": {
"3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256": {
"source": {
"path": "asset.b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip",
"path": "asset.3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip",
"objectKey": "3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
},
"57f9c7c2120dcf38a07108ffaeb8d5f9fceb772393939332dbd61bd4e738da16": {
"2ed3c6af0c33ee1b70e92c54b70afd7993ac159979bcca22c592b18511e323c1": {
"source": {
"path": "SecretIntegrationInline.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "57f9c7c2120dcf38a07108ffaeb8d5f9fceb772393939332dbd61bd4e738da16.json",
"objectKey": "2ed3c6af0c33ee1b70e92c54b70afd7993ac159979bcca22c592b18511e323c1.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "b75822c8c495b7a5b099b6e6134bb78f07198685bacf3c34d3b2bdcdde0dedf1.zip"
"S3Key": "3a08d1d1b68c7c6d8c3a7c5fbedd1621513532693ab62f35b54596e351c1a256.zip"
},
"Role": {
"Fn::GetAtt": [
Expand All @@ -189,8 +189,8 @@
"SOPS_AGE_KEY": "AGE-SECRET-KEY-1EFUWJ0G2XJTJFWTAM2DGMA4VCK3R05W58FSMHZP3MZQ0ZTAQEAFQC6T7T3"
}
},
"Handler": "cdk-sops-secrets",
"Runtime": "go1.x",
"Handler": "bootstrap",
"Runtime": "provided.al2",
"Timeout": 60
},
"DependsOn": [
Expand Down

0 comments on commit 26c05fc

Please sign in to comment.