cdk-ecr-deployment 2.4.4 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +0 -1
- package/.jsii +26 -26
- package/README.md +12 -3
- package/changelog.md +6 -1
- package/lambda/Dockerfile +3 -2
- package/lambda/go.mod +21 -31
- package/lambda/go.sum +421 -93
- package/lib/config.d.ts +1 -0
- package/lib/config.js +13 -0
- package/lib/index.js +6 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +93 -3
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +42 -11
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +31 -3
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +31 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1 -1
- package/package.json +9 -6
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/.gitattributes
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
10
10
|
/.github/workflows/release-v1-main.yml linguist-generated
|
|
11
11
|
/.github/workflows/release.yml linguist-generated
|
|
12
|
-
/.github/workflows/stale.yml linguist-generated
|
|
13
12
|
/.github/workflows/upgrade-main.yml linguist-generated
|
|
14
13
|
/.github/workflows/upgrade-v1-main.yml linguist-generated
|
|
15
14
|
/.gitignore linguist-generated
|
package/.jsii
CHANGED
|
@@ -2872,7 +2872,7 @@
|
|
|
2872
2872
|
},
|
|
2873
2873
|
"name": "cdk-ecr-deployment",
|
|
2874
2874
|
"readme": {
|
|
2875
|
-
"markdown": "# cdk-ecr-deployment\n\n[](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml)\n[](https://www.npmjs.com/package/cdk-ecr-deployment)\n[](https://pypi.org/project/cdk-ecr-deployment)\n[](https://www.npmjs.com/package/cdk-ecr-deployment)\n[](https://pypi.org/project/cdk-ecr-deployment)\n\nCDK construct to synchronize single docker image between docker registries.\n\n⚠️ Please use ^1.0.0 for cdk version 1.x.x, use ^2.0.0 for cdk version 2.x.x\n\n## Features\n\n- Copy image from ECR/external registry to (another) ECR/external registry
|
|
2875
|
+
"markdown": "# cdk-ecr-deployment\n\n[](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml)\n[](https://www.npmjs.com/package/cdk-ecr-deployment)\n[](https://pypi.org/project/cdk-ecr-deployment)\n[](https://www.npmjs.com/package/cdk-ecr-deployment)\n[](https://pypi.org/project/cdk-ecr-deployment)\n\nCDK construct to synchronize single docker image between docker registries.\n\n⚠️ Please use ^1.0.0 for cdk version 1.x.x, use ^2.0.0 for cdk version 2.x.x\n\n## Features\n\n- Copy image from ECR/external registry to (another) ECR/external registry\n- Copy an archive tarball image from s3 to ECR/external registry\n\n## Environment variables\n\nEnable flags: `true`, `1`. e.g. `export CI=1`\n\n- `CI` indicate if it's CI environment. This flag will enable building lambda from scratch.\n- `NO_PREBUILT_LAMBDA` disable using prebuilt lambda.\n- `FORCE_PREBUILT_LAMBDA` force using prebuilt lambda.\n\n⚠️ If you want to force using prebuilt lambda in CI environment to reduce build time. Try `export FORCE_PREBUILT_LAMBDA=1`.\n\n## Examples\n\n```ts\nimport { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\nimport * as ecrdeploy from 'cdk-ecr-deployment';\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be plain text! e.g. <username>:<password>\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));\n```\n\n## Sample: [test/integ.ecr-deployment.ts](./test/integ.ecr-deployment.ts)\n\n```shell\n# Run the following command to try the sample.\nNO_PREBUILT_LAMBDA=1 npx cdk deploy -a \"npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.ecr-deployment.ts\"\n```\n\n## [API](./API.md)\n\n## Tech Details & Contribution\n\nThe core of this project relies on [containers/image](https://github.com/containers/image) which is used by [Skopeo](https://github.com/containers/skopeo).\nPlease take a look at those projects before contribution.\n\nTo support a new docker image source(like docker tarball in s3), you need to implement [image transport interface](https://github.com/containers/image/blob/master/types/types.go). You could take a look at [docker-archive](https://github.com/containers/image/blob/ccb87a8d0f45cf28846e307eb0ec2b9d38a458c2/docker/archive/transport.go) transport for a good start.\n\nTo test the `lambda` folder, `make test`.\n"
|
|
2876
2876
|
},
|
|
2877
2877
|
"repository": {
|
|
2878
2878
|
"type": "git",
|
|
@@ -2901,7 +2901,7 @@
|
|
|
2901
2901
|
},
|
|
2902
2902
|
"locationInModule": {
|
|
2903
2903
|
"filename": "src/index.ts",
|
|
2904
|
-
"line":
|
|
2904
|
+
"line": 112
|
|
2905
2905
|
},
|
|
2906
2906
|
"parameters": [
|
|
2907
2907
|
{
|
|
@@ -2925,7 +2925,7 @@
|
|
|
2925
2925
|
"kind": "class",
|
|
2926
2926
|
"locationInModule": {
|
|
2927
2927
|
"filename": "src/index.ts",
|
|
2928
|
-
"line":
|
|
2928
|
+
"line": 111
|
|
2929
2929
|
},
|
|
2930
2930
|
"name": "DockerImageName",
|
|
2931
2931
|
"properties": [
|
|
@@ -2938,7 +2938,7 @@
|
|
|
2938
2938
|
"immutable": true,
|
|
2939
2939
|
"locationInModule": {
|
|
2940
2940
|
"filename": "src/index.ts",
|
|
2941
|
-
"line":
|
|
2941
|
+
"line": 113
|
|
2942
2942
|
},
|
|
2943
2943
|
"name": "uri",
|
|
2944
2944
|
"overrides": "cdk-ecr-deployment.IImageName",
|
|
@@ -2952,7 +2952,7 @@
|
|
|
2952
2952
|
},
|
|
2953
2953
|
"locationInModule": {
|
|
2954
2954
|
"filename": "src/index.ts",
|
|
2955
|
-
"line":
|
|
2955
|
+
"line": 112
|
|
2956
2956
|
},
|
|
2957
2957
|
"name": "creds",
|
|
2958
2958
|
"optional": true,
|
|
@@ -2977,7 +2977,7 @@
|
|
|
2977
2977
|
},
|
|
2978
2978
|
"locationInModule": {
|
|
2979
2979
|
"filename": "src/index.ts",
|
|
2980
|
-
"line":
|
|
2980
|
+
"line": 130
|
|
2981
2981
|
},
|
|
2982
2982
|
"parameters": [
|
|
2983
2983
|
{
|
|
@@ -3003,7 +3003,7 @@
|
|
|
3003
3003
|
"kind": "class",
|
|
3004
3004
|
"locationInModule": {
|
|
3005
3005
|
"filename": "src/index.ts",
|
|
3006
|
-
"line":
|
|
3006
|
+
"line": 127
|
|
3007
3007
|
},
|
|
3008
3008
|
"methods": [
|
|
3009
3009
|
{
|
|
@@ -3012,7 +3012,7 @@
|
|
|
3012
3012
|
},
|
|
3013
3013
|
"locationInModule": {
|
|
3014
3014
|
"filename": "src/index.ts",
|
|
3015
|
-
"line":
|
|
3015
|
+
"line": 191
|
|
3016
3016
|
},
|
|
3017
3017
|
"name": "addToPrincipalPolicy",
|
|
3018
3018
|
"parameters": [
|
|
@@ -3043,7 +3043,7 @@
|
|
|
3043
3043
|
"kind": "interface",
|
|
3044
3044
|
"locationInModule": {
|
|
3045
3045
|
"filename": "src/index.ts",
|
|
3046
|
-
"line":
|
|
3046
|
+
"line": 12
|
|
3047
3047
|
},
|
|
3048
3048
|
"name": "ECRDeploymentProps",
|
|
3049
3049
|
"properties": [
|
|
@@ -3056,7 +3056,7 @@
|
|
|
3056
3056
|
"immutable": true,
|
|
3057
3057
|
"locationInModule": {
|
|
3058
3058
|
"filename": "src/index.ts",
|
|
3059
|
-
"line":
|
|
3059
|
+
"line": 32
|
|
3060
3060
|
},
|
|
3061
3061
|
"name": "dest",
|
|
3062
3062
|
"type": {
|
|
@@ -3072,7 +3072,7 @@
|
|
|
3072
3072
|
"immutable": true,
|
|
3073
3073
|
"locationInModule": {
|
|
3074
3074
|
"filename": "src/index.ts",
|
|
3075
|
-
"line":
|
|
3075
|
+
"line": 27
|
|
3076
3076
|
},
|
|
3077
3077
|
"name": "src",
|
|
3078
3078
|
"type": {
|
|
@@ -3090,7 +3090,7 @@
|
|
|
3090
3090
|
"immutable": true,
|
|
3091
3091
|
"locationInModule": {
|
|
3092
3092
|
"filename": "src/index.ts",
|
|
3093
|
-
"line":
|
|
3093
|
+
"line": 23
|
|
3094
3094
|
},
|
|
3095
3095
|
"name": "buildImage",
|
|
3096
3096
|
"optional": true,
|
|
@@ -3107,7 +3107,7 @@
|
|
|
3107
3107
|
"immutable": true,
|
|
3108
3108
|
"locationInModule": {
|
|
3109
3109
|
"filename": "src/index.ts",
|
|
3110
|
-
"line":
|
|
3110
|
+
"line": 70
|
|
3111
3111
|
},
|
|
3112
3112
|
"name": "environment",
|
|
3113
3113
|
"optional": true,
|
|
@@ -3131,7 +3131,7 @@
|
|
|
3131
3131
|
"immutable": true,
|
|
3132
3132
|
"locationInModule": {
|
|
3133
3133
|
"filename": "src/index.ts",
|
|
3134
|
-
"line":
|
|
3134
|
+
"line": 43
|
|
3135
3135
|
},
|
|
3136
3136
|
"name": "memoryLimit",
|
|
3137
3137
|
"optional": true,
|
|
@@ -3149,7 +3149,7 @@
|
|
|
3149
3149
|
"immutable": true,
|
|
3150
3150
|
"locationInModule": {
|
|
3151
3151
|
"filename": "src/index.ts",
|
|
3152
|
-
"line":
|
|
3152
|
+
"line": 50
|
|
3153
3153
|
},
|
|
3154
3154
|
"name": "role",
|
|
3155
3155
|
"optional": true,
|
|
@@ -3167,7 +3167,7 @@
|
|
|
3167
3167
|
"immutable": true,
|
|
3168
3168
|
"locationInModule": {
|
|
3169
3169
|
"filename": "src/index.ts",
|
|
3170
|
-
"line":
|
|
3170
|
+
"line": 57
|
|
3171
3171
|
},
|
|
3172
3172
|
"name": "vpc",
|
|
3173
3173
|
"optional": true,
|
|
@@ -3186,7 +3186,7 @@
|
|
|
3186
3186
|
"immutable": true,
|
|
3187
3187
|
"locationInModule": {
|
|
3188
3188
|
"filename": "src/index.ts",
|
|
3189
|
-
"line":
|
|
3189
|
+
"line": 65
|
|
3190
3190
|
},
|
|
3191
3191
|
"name": "vpcSubnets",
|
|
3192
3192
|
"optional": true,
|
|
@@ -3206,7 +3206,7 @@
|
|
|
3206
3206
|
"kind": "interface",
|
|
3207
3207
|
"locationInModule": {
|
|
3208
3208
|
"filename": "src/index.ts",
|
|
3209
|
-
"line":
|
|
3209
|
+
"line": 73
|
|
3210
3210
|
},
|
|
3211
3211
|
"name": "IImageName",
|
|
3212
3212
|
"properties": [
|
|
@@ -3220,7 +3220,7 @@
|
|
|
3220
3220
|
"immutable": true,
|
|
3221
3221
|
"locationInModule": {
|
|
3222
3222
|
"filename": "src/index.ts",
|
|
3223
|
-
"line":
|
|
3223
|
+
"line": 79
|
|
3224
3224
|
},
|
|
3225
3225
|
"name": "uri",
|
|
3226
3226
|
"type": {
|
|
@@ -3236,7 +3236,7 @@
|
|
|
3236
3236
|
},
|
|
3237
3237
|
"locationInModule": {
|
|
3238
3238
|
"filename": "src/index.ts",
|
|
3239
|
-
"line":
|
|
3239
|
+
"line": 84
|
|
3240
3240
|
},
|
|
3241
3241
|
"name": "creds",
|
|
3242
3242
|
"optional": true,
|
|
@@ -3259,7 +3259,7 @@
|
|
|
3259
3259
|
},
|
|
3260
3260
|
"locationInModule": {
|
|
3261
3261
|
"filename": "src/index.ts",
|
|
3262
|
-
"line":
|
|
3262
|
+
"line": 118
|
|
3263
3263
|
},
|
|
3264
3264
|
"parameters": [
|
|
3265
3265
|
{
|
|
@@ -3290,7 +3290,7 @@
|
|
|
3290
3290
|
"kind": "class",
|
|
3291
3291
|
"locationInModule": {
|
|
3292
3292
|
"filename": "src/index.ts",
|
|
3293
|
-
"line":
|
|
3293
|
+
"line": 116
|
|
3294
3294
|
},
|
|
3295
3295
|
"name": "S3ArchiveName",
|
|
3296
3296
|
"properties": [
|
|
@@ -3303,7 +3303,7 @@
|
|
|
3303
3303
|
"immutable": true,
|
|
3304
3304
|
"locationInModule": {
|
|
3305
3305
|
"filename": "src/index.ts",
|
|
3306
|
-
"line":
|
|
3306
|
+
"line": 124
|
|
3307
3307
|
},
|
|
3308
3308
|
"name": "uri",
|
|
3309
3309
|
"overrides": "cdk-ecr-deployment.IImageName",
|
|
@@ -3317,7 +3317,7 @@
|
|
|
3317
3317
|
},
|
|
3318
3318
|
"locationInModule": {
|
|
3319
3319
|
"filename": "src/index.ts",
|
|
3320
|
-
"line":
|
|
3320
|
+
"line": 118
|
|
3321
3321
|
},
|
|
3322
3322
|
"name": "creds",
|
|
3323
3323
|
"optional": true,
|
|
@@ -3330,6 +3330,6 @@
|
|
|
3330
3330
|
"symbolId": "src/index:S3ArchiveName"
|
|
3331
3331
|
}
|
|
3332
3332
|
},
|
|
3333
|
-
"version": "2.
|
|
3334
|
-
"fingerprint": "
|
|
3333
|
+
"version": "2.5.2",
|
|
3334
|
+
"fingerprint": "bRSppJ2K8Dyh9a3S3dRB5Q83RyGsy3rpiAuYziOuIkA="
|
|
3335
3335
|
}
|
package/README.md
CHANGED
|
@@ -12,9 +12,18 @@ CDK construct to synchronize single docker image between docker registries.
|
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
|
-
- Copy image from ECR/external registry to (another) ECR/external registry
|
|
16
|
-
- Copy an archive tarball image from s3 to ECR/external registry
|
|
17
|
-
|
|
15
|
+
- Copy image from ECR/external registry to (another) ECR/external registry
|
|
16
|
+
- Copy an archive tarball image from s3 to ECR/external registry
|
|
17
|
+
|
|
18
|
+
## Environment variables
|
|
19
|
+
|
|
20
|
+
Enable flags: `true`, `1`. e.g. `export CI=1`
|
|
21
|
+
|
|
22
|
+
- `CI` indicate if it's CI environment. This flag will enable building lambda from scratch.
|
|
23
|
+
- `NO_PREBUILT_LAMBDA` disable using prebuilt lambda.
|
|
24
|
+
- `FORCE_PREBUILT_LAMBDA` force using prebuilt lambda.
|
|
25
|
+
|
|
26
|
+
⚠️ If you want to force using prebuilt lambda in CI environment to reduce build time. Try `export FORCE_PREBUILT_LAMBDA=1`.
|
|
18
27
|
|
|
19
28
|
## Examples
|
|
20
29
|
|
package/changelog.md
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
### [2.
|
|
2
|
+
### [2.5.2](https://github.com/cdklabs/cdk-ecr-deployment/compare/v2.5.1...v2.5.2) (2022-05-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* jsii/superchain:node14 not found ([4c41878](https://github.com/cdklabs/cdk-ecr-deployment/commit/4c418788b01e71ae1aa805559be220743ea7bdfe))
|
package/lambda/Dockerfile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
# SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
ARG buildImage=public.ecr.aws/sam/build-go1.x:latest
|
|
4
|
+
ARG GOPROXY=https://goproxy.cn|https://goproxy.io|direct
|
|
4
5
|
|
|
5
6
|
FROM ${buildImage}
|
|
6
7
|
|
|
@@ -16,13 +17,13 @@ RUN yum -y install \
|
|
|
16
17
|
ENV GOOS=linux \
|
|
17
18
|
GOARCH=amd64 \
|
|
18
19
|
GO111MODULE=on \
|
|
19
|
-
GOPROXY
|
|
20
|
+
GOPROXY=${GOPROXY}
|
|
20
21
|
|
|
21
22
|
WORKDIR /ws
|
|
22
23
|
|
|
23
24
|
COPY go.mod go.sum ./
|
|
24
25
|
|
|
25
|
-
RUN go mod download
|
|
26
|
+
RUN go mod download
|
|
26
27
|
|
|
27
28
|
COPY . /ws
|
|
28
29
|
|
package/lambda/go.mod
CHANGED
|
@@ -3,39 +3,29 @@ module cdk-ecr-deployment-handler
|
|
|
3
3
|
go 1.15
|
|
4
4
|
|
|
5
5
|
require (
|
|
6
|
-
github.com/
|
|
7
|
-
github.com/
|
|
8
|
-
github.com/
|
|
9
|
-
github.com/aws/aws-
|
|
10
|
-
github.com/aws/aws-sdk-go-v2 v1.
|
|
11
|
-
github.com/aws/aws-sdk-go-v2/
|
|
12
|
-
github.com/aws/aws-sdk-go-v2/
|
|
13
|
-
github.com/
|
|
14
|
-
github.com/
|
|
15
|
-
github.com/
|
|
16
|
-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
|
17
|
-
github.com/containerd/cgroups v1.0.3 // indirect
|
|
18
|
-
github.com/containerd/containerd v1.5.10 // indirect
|
|
19
|
-
github.com/containers/image/v5 v5.17.0
|
|
20
|
-
github.com/docker/distribution v2.8.0+incompatible // indirect
|
|
21
|
-
github.com/docker/docker v20.10.12+incompatible // indirect
|
|
6
|
+
github.com/BurntSushi/toml v1.1.0 // indirect
|
|
7
|
+
github.com/aws/aws-lambda-go v1.29.0
|
|
8
|
+
github.com/aws/aws-sdk-go-v2 v1.16.2
|
|
9
|
+
github.com/aws/aws-sdk-go-v2/config v1.15.3
|
|
10
|
+
github.com/aws/aws-sdk-go-v2/service/ecr v1.17.3
|
|
11
|
+
github.com/aws/aws-sdk-go-v2/service/s3 v1.26.4
|
|
12
|
+
github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.15.4
|
|
13
|
+
github.com/containerd/containerd v1.6.2 // indirect
|
|
14
|
+
github.com/containers/image/v5 v5.21.0
|
|
15
|
+
github.com/containers/storage v1.39.0 // indirect
|
|
22
16
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
|
|
23
|
-
github.com/
|
|
24
|
-
github.com/moby/term v0.0.0-20210610120745-9d4ed1856297 // indirect
|
|
17
|
+
github.com/gorilla/mux v1.8.0 // indirect
|
|
25
18
|
github.com/opencontainers/go-digest v1.0.0
|
|
26
|
-
github.com/opencontainers/
|
|
27
|
-
github.com/opencontainers/runc v1.1.0 // indirect
|
|
19
|
+
github.com/opencontainers/runc v1.1.1 // indirect
|
|
28
20
|
github.com/pkg/errors v0.9.1
|
|
29
|
-
github.com/prometheus/common v0.
|
|
30
|
-
github.com/prometheus/procfs v0.7.3 // indirect
|
|
21
|
+
github.com/prometheus/common v0.33.0 // indirect
|
|
31
22
|
github.com/sirupsen/logrus v1.8.1
|
|
32
|
-
github.com/stretchr/testify v1.7.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
golang.org/x/
|
|
36
|
-
golang.org/x/
|
|
37
|
-
|
|
38
|
-
google.golang.org/
|
|
39
|
-
gopkg.in/
|
|
40
|
-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
|
23
|
+
github.com/stretchr/testify v1.7.1
|
|
24
|
+
github.com/vbauerster/mpb/v7 v7.4.1 // indirect
|
|
25
|
+
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
|
|
26
|
+
golang.org/x/crypto v0.0.0-20220408190544-5352b0902921 // indirect
|
|
27
|
+
golang.org/x/net v0.0.0-20220407224826-aac1ed45d8e3 // indirect
|
|
28
|
+
golang.org/x/sys v0.0.0-20220408201424-a24fb2fb8a0f // indirect
|
|
29
|
+
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
|
|
30
|
+
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
|
41
31
|
)
|