@aws-cdk/app-staging-synthesizer-alpha 2.82.0-alpha.0
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/.jsii +5029 -0
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +169 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +401 -0
- package/adr/resource-names.md +30 -0
- package/jest.config.js +4 -0
- package/lib/app-staging-synthesizer.d.ts +125 -0
- package/lib/app-staging-synthesizer.js +255 -0
- package/lib/bootstrap-roles.d.ts +93 -0
- package/lib/bootstrap-roles.js +98 -0
- package/lib/default-staging-stack.d.ts +151 -0
- package/lib/default-staging-stack.js +285 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +21 -0
- package/lib/per-env-staging-factory.d.ts +10 -0
- package/lib/per-env-staging-factory.js +32 -0
- package/lib/private/app-global.d.ts +16 -0
- package/lib/private/app-global.js +34 -0
- package/lib/private/no-tokens.d.ts +1 -0
- package/lib/private/no-tokens.js +13 -0
- package/lib/staging-stack.d.ts +107 -0
- package/lib/staging-stack.js +3 -0
- package/package.json +105 -0
- package/rosetta/_generated.ts-fixture +6 -0
- package/rosetta/default.ts-fixture +22 -0
- package/rosetta/with-custom-staging.ts-fixture +44 -0
package/package.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-cdk/app-staging-synthesizer-alpha",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "2.82.0-alpha.0",
|
|
5
|
+
"description": "Cdk synthesizer for with app-scoped staging stack",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"jsii": {
|
|
9
|
+
"outdir": "dist",
|
|
10
|
+
"projectReferences": true,
|
|
11
|
+
"metadata": {
|
|
12
|
+
"jsii": {
|
|
13
|
+
"rosetta": {
|
|
14
|
+
"strict": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"targets": {
|
|
19
|
+
"java": {
|
|
20
|
+
"maven": {
|
|
21
|
+
"groupId": "software.amazon.awscdk",
|
|
22
|
+
"artifactId": "cdk-app-staging-synthesizer-alpha"
|
|
23
|
+
},
|
|
24
|
+
"package": "software.amazon.awscdk.app.staging.synthesizer.alpha"
|
|
25
|
+
},
|
|
26
|
+
"python": {
|
|
27
|
+
"distName": "aws-cdk.app-staging-synthesizer-alpha",
|
|
28
|
+
"module": "aws_cdk.app_staging_synthesizer_alpha",
|
|
29
|
+
"classifiers": [
|
|
30
|
+
"Framework :: AWS CDK",
|
|
31
|
+
"Framework :: AWS CDK :: 2"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"dotnet": {
|
|
35
|
+
"namespace": "Amazon.CDK.AppStagingSynthesizer.Alpha",
|
|
36
|
+
"packageId": "Amazon.CDK.AppStagingSynthesizer.Alpha",
|
|
37
|
+
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/main/logo/default-256-dark.png"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/aws/aws-cdk.git",
|
|
44
|
+
"directory": "packages/@aws-cdk/app-staging-synthesizer-alpha"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "cdk-build",
|
|
48
|
+
"watch": "cdk-watch",
|
|
49
|
+
"lint": "cdk-lint",
|
|
50
|
+
"test": "cdk-test",
|
|
51
|
+
"integ": "integ-runner",
|
|
52
|
+
"pkglint": "pkglint -f",
|
|
53
|
+
"package": "cdk-package",
|
|
54
|
+
"awslint": "cdk-awslint",
|
|
55
|
+
"build+test": "yarn build && yarn test",
|
|
56
|
+
"build+test+package": "yarn build+test && yarn package",
|
|
57
|
+
"compat": "cdk-compat",
|
|
58
|
+
"rosetta:extract": "yarn --silent jsii-rosetta extract",
|
|
59
|
+
"build+extract": "yarn build && yarn rosetta:extract",
|
|
60
|
+
"build+test+extract": "yarn build+test && yarn rosetta:extract"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"aws",
|
|
64
|
+
"cdk"
|
|
65
|
+
],
|
|
66
|
+
"author": {
|
|
67
|
+
"name": "Amazon Web Services",
|
|
68
|
+
"url": "https://aws.amazon.com",
|
|
69
|
+
"organization": true
|
|
70
|
+
},
|
|
71
|
+
"license": "Apache-2.0",
|
|
72
|
+
"homepage": "https://github.com/aws/aws-cdk",
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">= 14.15.0"
|
|
75
|
+
},
|
|
76
|
+
"stability": "experimental",
|
|
77
|
+
"maturity": "experimental",
|
|
78
|
+
"awscdkio": {
|
|
79
|
+
"announce": false
|
|
80
|
+
},
|
|
81
|
+
"cdk-build": {
|
|
82
|
+
"env": {
|
|
83
|
+
"AWSLINT_BASE_CONSTRUCT": true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"aws-cdk-lib": "2.82.0",
|
|
88
|
+
"constructs": "^10.0.0"
|
|
89
|
+
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"aws-cdk-lib": "2.82.0",
|
|
92
|
+
"@aws-cdk/integ-runner": "2.82.0-alpha.0",
|
|
93
|
+
"@aws-cdk/integ-tests-alpha": "2.82.0-alpha.0",
|
|
94
|
+
"constructs": "^10.0.0",
|
|
95
|
+
"@aws-cdk/cdk-build-tools": "2.82.0-alpha.0",
|
|
96
|
+
"@aws-cdk/pkglint": "2.82.0-alpha.0"
|
|
97
|
+
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"aws-cdk-lib": "2.82.0",
|
|
100
|
+
"constructs": "^10.0.0"
|
|
101
|
+
},
|
|
102
|
+
"publishConfig": {
|
|
103
|
+
"tag": "latest"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Fixture with packages imported, but nothing else
|
|
2
|
+
import { App, Stack, StackProps, Duration, DockerImageAssetSource, FileAssetSource } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
5
|
+
import {
|
|
6
|
+
AppStagingSynthesizer,
|
|
7
|
+
BootstrapRole,
|
|
8
|
+
DefaultStagingStack,
|
|
9
|
+
DefaultStagingStackOptions,
|
|
10
|
+
IStagingResources,
|
|
11
|
+
FileStagingLocation,
|
|
12
|
+
ImageStagingLocation,
|
|
13
|
+
DeploymentIdentities,
|
|
14
|
+
} from '@aws-cdk/app-staging-synthesizer-alpha';
|
|
15
|
+
import * as path from 'path';
|
|
16
|
+
|
|
17
|
+
class Fixture extends Stack {
|
|
18
|
+
constructor(scope: Construct, id: string) {
|
|
19
|
+
super(scope, id);
|
|
20
|
+
/// here
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Fixture with packages imported, but nothing else
|
|
2
|
+
import { App, Stack, StackProps, DockerImageAssetSource, FileAssetSource } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import {
|
|
5
|
+
AppStagingSynthesizer,
|
|
6
|
+
DefaultStagingStack,
|
|
7
|
+
BootstrapRole,
|
|
8
|
+
FileStagingLocation,
|
|
9
|
+
ImageStagingLocation,
|
|
10
|
+
ObtainStagingResourcesContext,
|
|
11
|
+
IStagingResourcesFactory,
|
|
12
|
+
IStagingResources,
|
|
13
|
+
} from '@aws-cdk/app-staging-synthesizer-alpha';
|
|
14
|
+
|
|
15
|
+
interface CustomStagingStackProps extends StackProps {}
|
|
16
|
+
|
|
17
|
+
class CustomStagingStack extends Stack implements IStagingResources {
|
|
18
|
+
public constructor(scope: Construct, id: string, props: CustomStagingStackProps) {
|
|
19
|
+
super(scope, id, props);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public addFile(asset: FileAssetSource): FileStagingLocation {
|
|
23
|
+
return {
|
|
24
|
+
bucketName: 'myBucket',
|
|
25
|
+
assumeRoleArn: 'myArn',
|
|
26
|
+
dependencyStack: this,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public addDockerImage(asset: DockerImageAssetSource): ImageStagingLocation {
|
|
31
|
+
return {
|
|
32
|
+
repoName: 'myRepo',
|
|
33
|
+
assumeRoleArn: 'myArn',
|
|
34
|
+
dependencyStack: this,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
class Fixture extends Stack {
|
|
40
|
+
constructor(scope: Construct, id: string) {
|
|
41
|
+
super(scope, id);
|
|
42
|
+
/// here
|
|
43
|
+
}
|
|
44
|
+
}
|