@aws-cdk/core
Advanced tools
Comparing version 1.39.0 to 1.40.0
@@ -103,6 +103,17 @@ /** | ||
* The HTTP URL of this asset on Amazon S3. | ||
* @deprecated use `httpUrl` | ||
*/ | ||
readonly s3Url: string; | ||
/** | ||
* The HTTP URL of this asset on Amazon S3. | ||
* | ||
* @example https://s3-us-east-1.amazonaws.com/mybucket/myobject | ||
*/ | ||
readonly s3Url: string; | ||
readonly httpUrl: string; | ||
/** | ||
* The S3 URL of this asset on Amazon S3. | ||
* | ||
* @example s3://mybucket/myobject | ||
*/ | ||
readonly s3ObjectUrl: string; | ||
} | ||
@@ -109,0 +120,0 @@ /** |
@@ -19,2 +19,2 @@ "use strict"; | ||
})(FileAssetPackaging = exports.FileAssetPackaging || (exports.FileAssetPackaging = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXNzZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBK0VBOztHQUVHO0FBQ0gsSUFBWSxrQkFZWDtBQVpELFdBQVksa0JBQWtCO0lBQzVCOzs7T0FHRztJQUNILDJDQUFxQixDQUFBO0lBRXJCOzs7T0FHRztJQUNILG1DQUFhLENBQUE7QUFDZixDQUFDLEVBWlcsa0JBQWtCLEdBQWxCLDBCQUFrQixLQUFsQiwwQkFBa0IsUUFZN0IiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFJlcHJlc2VudHMgdGhlIHNvdXJjZSBmb3IgYSBmaWxlIGFzc2V0LlxuICovXG5leHBvcnQgaW50ZXJmYWNlIEZpbGVBc3NldFNvdXJjZSB7XG4gIC8qKlxuICAgKiBBIGhhc2ggb24gdGhlIGNvbnRlbnQgc291cmNlLiBUaGlzIGhhc2ggaXMgdXNlZCB0byB1bmlxdWVseSBpZGVudGlmeSB0aGlzXG4gICAqIGFzc2V0IHRocm91Z2hvdXQgd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i9cbmV4cG9ydCBpbnRlcmZhY2UgRG9ja2VySW1hZ2VBc3NldExvY2F0aW9uIHtcbiAgLyoqXG4gICAqIFRoZSBVUkkgb2YgdGhlIGltYWdlIGluIEFtYXpvbiBFQ1IuXG4gICAqL1xuICByZWFkb25seSBpbWFnZVVyaTogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgbmFtZSBvZiB0aGUgRUNSIHJlcG9zaXRvcnkuXG4gICAqL1xuICByZWFkb25seSByZXBvc2l0b3J5TmFtZTogc3RyaW5nO1xufVxuIl19 |
@@ -34,3 +34,3 @@ import * as cdk from '.'; | ||
*/ | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any): CfnCustomResource; | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cdk.FromCloudFormationOptions): CfnCustomResource; | ||
/** | ||
@@ -118,3 +118,3 @@ * `AWS::CloudFormation::CustomResource.ServiceToken` | ||
*/ | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any): CfnMacro; | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cdk.FromCloudFormationOptions): CfnMacro; | ||
/** | ||
@@ -224,3 +224,3 @@ * `AWS::CloudFormation::Macro.FunctionName` | ||
*/ | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any): CfnStack; | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cdk.FromCloudFormationOptions): CfnStack; | ||
/** | ||
@@ -320,3 +320,3 @@ * `AWS::CloudFormation::Stack.TemplateURL` | ||
*/ | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any): CfnWaitCondition; | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cdk.FromCloudFormationOptions): CfnWaitCondition; | ||
/** | ||
@@ -385,3 +385,3 @@ * @cloudformationAttribute Data | ||
*/ | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any): CfnWaitConditionHandle; | ||
static fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cdk.FromCloudFormationOptions): CfnWaitConditionHandle; | ||
/** | ||
@@ -388,0 +388,0 @@ * Create a new `AWS::CloudFormation::WaitConditionHandle`. |
@@ -29,2 +29,3 @@ export * from './aspect'; | ||
export * from './duration'; | ||
export * from './from-cfn'; | ||
export * from './size'; | ||
@@ -31,0 +32,0 @@ export * from './stack-trace'; |
@@ -52,2 +52,2 @@ "use strict"; | ||
__export(require("./private/intrinsic")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUNBLGtDQUE2QjtBQUU3Qix3Q0FBbUM7QUFDbkMsNkJBQXdCO0FBQ3hCLGtDQUE2QjtBQUM3Qiw0QkFBdUI7QUFDdkIsbUNBQThCO0FBQzlCLGtDQUE2QjtBQUM3Qix3Q0FBbUM7QUFDbkMsMENBQXFDO0FBRXJDLGlDQUE0QjtBQUM1QixxQ0FBZ0M7QUFDaEMsOEJBQXlCO0FBQ3pCLG1DQUE4QjtBQUM5QixtQ0FBOEI7QUFDOUIsa0NBQTZCO0FBQzdCLHFDQUFnQztBQUNoQyxrQ0FBNkI7QUFDN0Isb0NBQStCO0FBQy9CLDJDQUFzQztBQUN0QyxnQ0FBMkI7QUFDM0IsNkJBQXdCO0FBQ3hCLG1DQUE4QjtBQUM5Qiw2Q0FBd0M7QUFFeEMsc0NBQWlDO0FBQ2pDLDJCQUFzQjtBQUN0QixnQ0FBMkI7QUFDM0IsNEJBQXVCO0FBQ3ZCLG1DQUE4QjtBQUU5QiwyQkFBc0I7QUFDdEIsd0NBQW1DO0FBR25DLCtCQUEwQjtBQUMxQixvQ0FBK0I7QUFFL0IsZ0NBQTJCO0FBQzNCLHFDQUFnQztBQ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i1jYXBhYmlsaXRpZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9jbG91ZGZvcm1hdGlvbi5nZW5lcmF0ZWQnO1xuXG4vLyBXQVJOSU5HOiBTaG91bGQgbm90IGJlIGV4cG9ydGVkLCBidXQgY3VycmVudGx5IGlzIGJlY2F1c2Ugb2YgYSBidWcuIFNlZSB0aGVcbi8vIGNsYXNzIGRlc2NyaXB0aW9uIGZvciBtb3JlIGluZm9ybWF0aW9uLlxuZXhwb3J0ICogZnJvbSAnLi9wcml2YXRlL2ludHJpbnNpYyc7XG4iXX0= |
@@ -5,2 +5,3 @@ import { DockerImageAssetLocation, DockerImageAssetSource, FileAssetLocation, FileAssetSource } from '../assets'; | ||
import { IStackSynthesizer } from './types'; | ||
export declare const BOOTSTRAP_QUALIFIER_CONTEXT = "@aws-cdk/core:bootstrapQualifier"; | ||
/** | ||
@@ -61,5 +62,5 @@ * Configuration properties for DefaultStackSynthesizer | ||
* | ||
* @default DefaultStackSynthesizer.DEFAULT_DEPLOY_ACTION_ROLE_ARN | ||
* @default DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN | ||
*/ | ||
readonly deployActionRoleArn?: string; | ||
readonly deployRoleArn?: string; | ||
/** | ||
@@ -83,3 +84,3 @@ * The role CloudFormation will assume when deploying the Stack | ||
* | ||
* @default DefaultStackSynthesizer.DEFAULT_QUALIFIER | ||
* @default - Value of context key '@aws-cdk/core:bootstrapQualifier' if set, otherwise `DefaultStackSynthesizer.DEFAULT_QUALIFIER` | ||
*/ | ||
@@ -106,23 +107,23 @@ readonly qualifier?: string; | ||
*/ | ||
static readonly DEFAULT_CLOUDFORMATION_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-cfn-exec-role-${AWS::AccountId}-${AWS::Region}"; | ||
static readonly DEFAULT_CLOUDFORMATION_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-cfn-exec-role-${AWS::AccountId}-${AWS::Region}"; | ||
/** | ||
* Default deploy action role ARN. | ||
* Default deploy role ARN. | ||
*/ | ||
static readonly DEFAULT_DEPLOY_ACTION_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-deploy-action-role-${AWS::AccountId}-${AWS::Region}"; | ||
static readonly DEFAULT_DEPLOY_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-deploy-role-${AWS::AccountId}-${AWS::Region}"; | ||
/** | ||
* Default asset publishing role ARN. | ||
*/ | ||
static readonly DEFAULT_ASSET_PUBLISHING_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-publishing-role-${AWS::AccountId}-${AWS::Region}"; | ||
static readonly DEFAULT_ASSET_PUBLISHING_ROLE_ARN = "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-publishing-role-${AWS::AccountId}-${AWS::Region}"; | ||
/** | ||
* Default image assets repository name | ||
*/ | ||
static readonly DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME = "cdk-bootstrap-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}"; | ||
static readonly DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME = "cdk-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}"; | ||
/** | ||
* Default file assets bucket name | ||
*/ | ||
static readonly DEFAULT_FILE_ASSETS_BUCKET_NAME = "cdk-bootstrap-${Qualifier}-assets-${AWS::AccountId}-${AWS::Region}"; | ||
static readonly DEFAULT_FILE_ASSETS_BUCKET_NAME = "cdk-${Qualifier}-assets-${AWS::AccountId}-${AWS::Region}"; | ||
private stack?; | ||
private bucketName?; | ||
private repositoryName?; | ||
private deployActionRoleArn?; | ||
private deployRoleArn?; | ||
private cloudFormationExecutionRoleArn?; | ||
@@ -141,3 +142,6 @@ private assetPublishingRoleArn?; | ||
* This will make it get uploaded to S3 automatically by S3-assets. Return | ||
* the URL. | ||
* the manifest URL. | ||
* | ||
* (We can't return the location returned from `addFileAsset`, as that | ||
* contains CloudFormation intrinsics which can't go into the manifest). | ||
*/ | ||
@@ -144,0 +148,0 @@ private addStackTemplateToAssetManifest; |
@@ -12,2 +12,3 @@ "use strict"; | ||
const _shared_1 = require("./_shared"); | ||
exports.BOOTSTRAP_QUALIFIER_CONTEXT = '@aws-cdk/core:bootstrapQualifier'; | ||
/** | ||
@@ -29,5 +30,5 @@ * Uses conventionally named roles and reify asset storage locations | ||
bind(stack) { | ||
var _a, _b, _c, _d, _e, _f; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
this.stack = stack; | ||
const qualifier = (_a = this.props.qualifier) !== null && _a !== void 0 ? _a : DefaultStackSynthesizer.DEFAULT_QUALIFIER; | ||
const qualifier = (_b = (_a = this.props.qualifier) !== null && _a !== void 0 ? _a : stack.node.tryGetContext(exports.BOOTSTRAP_QUALIFIER_CONTEXT)) !== null && _b !== void 0 ? _b : DefaultStackSynthesizer.DEFAULT_QUALIFIER; | ||
// Function to replace placeholders in the input string as much as possible | ||
@@ -48,7 +49,7 @@ // | ||
// tslint:disable:max-line-length | ||
this.bucketName = specialize((_b = this.props.fileAssetsBucketName) !== null && _b !== void 0 ? _b : DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME); | ||
this.repositoryName = specialize((_c = this.props.imageAssetsRepositoryName) !== null && _c !== void 0 ? _c : DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME); | ||
this.deployActionRoleArn = specialize((_d = this.props.deployActionRoleArn) !== null && _d !== void 0 ? _d : DefaultStackSynthesizer.DEFAULT_DEPLOY_ACTION_ROLE_ARN); | ||
this.cloudFormationExecutionRoleArn = specialize((_e = this.props.cloudFormationExecutionRole) !== null && _e !== void 0 ? _e : DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN); | ||
this.assetPublishingRoleArn = specialize((_f = this.props.assetPublishingRoleArn) !== null && _f !== void 0 ? _f : DefaultStackSynthesizer.DEFAULT_ASSET_PUBLISHING_ROLE_ARN); | ||
this.bucketName = specialize((_c = this.props.fileAssetsBucketName) !== null && _c !== void 0 ? _c : DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME); | ||
this.repositoryName = specialize((_d = this.props.imageAssetsRepositoryName) !== null && _d !== void 0 ? _d : DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME); | ||
this.deployRoleArn = specialize((_e = this.props.deployRoleArn) !== null && _e !== void 0 ? _e : DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN); | ||
this.cloudFormationExecutionRoleArn = specialize((_f = this.props.cloudFormationExecutionRole) !== null && _f !== void 0 ? _f : DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN); | ||
this.assetPublishingRoleArn = specialize((_g = this.props.assetPublishingRoleArn) !== null && _g !== void 0 ? _g : DefaultStackSynthesizer.DEFAULT_ASSET_PUBLISHING_ROLE_ARN); | ||
// tslint:enable:max-line-length | ||
@@ -76,2 +77,4 @@ } | ||
}; | ||
const httpUrl = cfnify(`https://s3.${this.stack.region}.${this.stack.urlSuffix}/${this.bucketName}/${objectKey}`); | ||
const s3ObjectUrl = cfnify(`s3://${this.bucketName}/${objectKey}`); | ||
// Return CFN expression | ||
@@ -81,3 +84,5 @@ return { | ||
objectKey, | ||
s3Url: cfnify(`https://s3.${this.stack.region}.${this.stack.urlSuffix}/${this.bucketName}/${objectKey}`), | ||
httpUrl, | ||
s3ObjectUrl, | ||
s3Url: httpUrl, | ||
}; | ||
@@ -116,8 +121,8 @@ } | ||
// Add the stack's template to the artifact manifest | ||
const templateAsset = this.addStackTemplateToAssetManifest(session); | ||
const templateManifestUrl = this.addStackTemplateToAssetManifest(session); | ||
const artifactId = this.writeAssetManifest(session); | ||
_shared_1.addStackArtifactToAssembly(session, this.stack, { | ||
assumeRoleArn: this.deployActionRoleArn, | ||
assumeRoleArn: this.deployRoleArn, | ||
cloudFormationExecutionRoleArn: this.cloudFormationExecutionRoleArn, | ||
stackTemplateAssetObjectUrl: templateAsset.s3Url, | ||
stackTemplateAssetObjectUrl: templateManifestUrl, | ||
requiresBootstrapStackVersion: 1, | ||
@@ -130,3 +135,6 @@ }, [artifactId]); | ||
* This will make it get uploaded to S3 automatically by S3-assets. Return | ||
* the URL. | ||
* the manifest URL. | ||
* | ||
* (We can't return the location returned from `addFileAsset`, as that | ||
* contains CloudFormation intrinsics which can't go into the manifest). | ||
*/ | ||
@@ -137,7 +145,16 @@ addStackTemplateToAssetManifest(session) { | ||
const template = fs.readFileSync(templatePath, { encoding: 'utf-8' }); | ||
return this.addFileAsset({ | ||
const sourceHash = _shared_1.contentHash(template); | ||
this.addFileAsset({ | ||
fileName: this.stack.templateFile, | ||
packaging: assets_1.FileAssetPackaging.FILE, | ||
sourceHash: _shared_1.contentHash(template), | ||
sourceHash, | ||
}); | ||
// We should technically return an 'https://s3.REGION.amazonaws.com[.cn]/name/hash' URL here, | ||
// because that is what CloudFormation expects to see. | ||
// | ||
// However, there's no way for us to actually know the UrlSuffix a priori, so we can't construct it here. | ||
// | ||
// Instead, we'll have a protocol with the CLI that we put an 's3://.../...' URL here, and the CLI | ||
// is going to resolve it to the correct 'https://.../' URL before it gives it to CloudFormation. | ||
return `s3://${this.bucketName}/${sourceHash}`; | ||
} | ||
@@ -183,19 +200,19 @@ /** | ||
*/ | ||
DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-cfn-exec-role-${AWS::AccountId}-${AWS::Region}'; | ||
DefaultStackSynthesizer.DEFAULT_CLOUDFORMATION_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-cfn-exec-role-${AWS::AccountId}-${AWS::Region}'; | ||
/** | ||
* Default deploy action role ARN. | ||
* Default deploy role ARN. | ||
*/ | ||
DefaultStackSynthesizer.DEFAULT_DEPLOY_ACTION_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-deploy-action-role-${AWS::AccountId}-${AWS::Region}'; | ||
DefaultStackSynthesizer.DEFAULT_DEPLOY_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-deploy-role-${AWS::AccountId}-${AWS::Region}'; | ||
/** | ||
* Default asset publishing role ARN. | ||
*/ | ||
DefaultStackSynthesizer.DEFAULT_ASSET_PUBLISHING_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-bootstrap-publishing-role-${AWS::AccountId}-${AWS::Region}'; | ||
DefaultStackSynthesizer.DEFAULT_ASSET_PUBLISHING_ROLE_ARN = 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-${Qualifier}-publishing-role-${AWS::AccountId}-${AWS::Region}'; | ||
/** | ||
* Default image assets repository name | ||
*/ | ||
DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME = 'cdk-bootstrap-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}'; | ||
DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME = 'cdk-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}'; | ||
/** | ||
* Default file assets bucket name | ||
*/ | ||
DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME = 'cdk-bootstrap-${Qualifier}-assets-${AWS::AccountId}-${AWS::Region}'; | ||
DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME = 'cdk-${Qualifier}-assets-${AWS::AccountId}-${AWS::Region}'; | ||
/** | ||
@@ -222,2 +239,2 @@ * Return the given value if resolved or fall back to a default | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1zeW50aGVzaXplci5qcyIsInNvdXJjZVJvb3QiOiIiL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CIgZnVuY3Rpb24gdGhhdCBkb2Vzbid0IHJlcXVpcmUgdXMgZXNjYXBpbmcgYSBsaXRlcmFsIHN0cmluZyB0byBhIHJlZ2V4XG4gKi9cbmZ1bmN0aW9uIHJlcGxhY2VBbGwoczogc3RyaW5nLCBzZWFyY2g6IHN0cmluZywgcmVwbGFjZTogc3RyaW5nKSB7XG4gIHJldHVybiBzLnNwbGl0KHNlYXJjaCkuam9pbihyZXBsYWNlKTtcbn1cblxuLyoqXG4gKiBJZiB0aGUgc3RyaW5nIHN0aWxsIGNvbnRhaW5zIHBsYWNlaG9sZGVycywgd3JhcCBpdCBpbiBhIEZuOjpTdWIgc28gdGhleSB3aWxsIGJlIHN1YnN0aXR1dGVkIGF0IENGTiBkZXBsb3ltZW4gdGltZVxuICpcbiAqIChUaGlzIGhhcHBlbnMgdG8gd29yayBiZWNhdXNlIHRoZSBwbGFjZWhvbGRlcnMgd2UgcGlja2VkIG1hcCBkaXJlY3RseSBvbnRvIENGTlxuICogcGxhY2Vob2xkZXJzLiBJZiB0aGV5IGRpZG4ndCB3ZSdkIGhhdmUgdG8gZG8gYSB0cmFuc2Zvcm1hdGlvbiBoZXJlKS5cbiAqL1xuZnVuY3Rpb24gY2ZuaWZ5KHM6IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiBzLmluZGV4T2YoJyR7JykgPiAtMSA/IEZuLnN1YihzKSA6IHM7XG59XG4iXX0= |
@@ -137,4 +137,5 @@ "use strict"; | ||
const objectKey = `${s3Prefix}${s3Filename}`; | ||
const s3Url = `https://s3.${this.stack.region}.${this.stack.urlSuffix}/${bucketName}/${objectKey}`; | ||
return { bucketName, objectKey, s3Url }; | ||
const httpUrl = `https://s3.${this.stack.region}.${this.stack.urlSuffix}/${bucketName}/${objectKey}`; | ||
const s3ObjectUrl = `s3://${bucketName}/${objectKey}`; | ||
return { bucketName, objectKey, httpUrl, s3ObjectUrl, s3Url: httpUrl }; | ||
} | ||
@@ -150,2 +151,2 @@ get assetPar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zT2JqZWN0VXJsLCBzM1VybDogaHR0cFVybCB9O1xuICB9XG5cbiAgcHJpdmF0ZSBnZXQgYXNzZXRQYXJhbWV0ZXJzKCkge1xuICAgIGFzc2VydEJvdW5kKHRoaXMuc3RhY2spO1xuXG4gICAgaWYgKCF0aGlzLl9hc3NldFBhcmFtZXRlcnMpIHtcbiAgICAgIHRoaXMuX2Fzc2V0UGFyYW1ldGVycyA9IG5ldyBDb25zdHJ1Y3QodGhpcy5zdGFjaywgJ0Fzc2V0UGFyYW1ldGVycycpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5fYXNzZXRQYXJhbWV0ZXJzO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "@aws-cdk/core", | ||
"version": "1.39.0", | ||
"version": "1.40.0", | ||
"description": "AWS Cloud Development Kit Core Library", | ||
@@ -153,12 +153,12 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.151", | ||
"@types/lodash": "^4.14.152", | ||
"@types/node": "^10.17.21", | ||
"@types/nodeunit": "^0.0.31", | ||
"@types/minimatch": "^3.0.3", | ||
"cdk-build-tools": "1.39.0", | ||
"cfn2ts": "1.39.0", | ||
"cdk-build-tools": "1.40.0", | ||
"cfn2ts": "1.40.0", | ||
"fast-check": "^1.24.2", | ||
"lodash": "^4.17.15", | ||
"nodeunit": "^0.11.3", | ||
"pkglint": "1.39.0", | ||
"pkglint": "1.40.0", | ||
"ts-mock-imports": "^1.3.0" | ||
@@ -168,5 +168,5 @@ }, | ||
"minimatch": "^3.0.4", | ||
"@aws-cdk/cx-api": "1.39.0", | ||
"@aws-cdk/cdk-assets-schema": "1.39.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.39.0", | ||
"@aws-cdk/cx-api": "1.40.0", | ||
"@aws-cdk/cdk-assets-schema": "1.40.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.40.0", | ||
"constructs": "^3.0.2" | ||
@@ -179,5 +179,5 @@ }, | ||
"peerDependencies": { | ||
"@aws-cdk/cdk-assets-schema": "1.39.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.39.0", | ||
"@aws-cdk/cx-api": "1.39.0", | ||
"@aws-cdk/cdk-assets-schema": "1.40.0", | ||
"@aws-cdk/cloud-assembly-schema": "1.40.0", | ||
"@aws-cdk/cx-api": "1.40.0", | ||
"constructs": "^3.0.2" | ||
@@ -184,0 +184,0 @@ }, |
import { Test } from 'nodeunit'; | ||
declare const _default: { | ||
setUp(cb: () => void): void; | ||
'stack template is in asset manifest'(test: Test): void; | ||
'add file asset'(test: Test): void; | ||
@@ -5,0 +6,0 @@ 'add docker image asset'(test: Test): void; |
@@ -34,2 +34,30 @@ "use strict"; | ||
}, | ||
'stack template is in asset manifest'(test) { | ||
var _a; | ||
// GIVEN | ||
new lib_1.CfnResource(stack, 'Resource', { | ||
type: 'Some::Resource', | ||
}); | ||
// WHEN | ||
const asm = app.synth(); | ||
// THEN -- the S3 url is advertised on the stack artifact | ||
const stackArtifact = asm.getStackArtifact('Stack'); | ||
test.equals(stackArtifact.stackTemplateAssetObjectUrl, 's3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4bdae6e3b1b15f08c889d6c9133f24731ee14827a9a9ab9b6b6a9b42b6d34910'); | ||
// THEN - the template is in the asset manifest | ||
const manifestArtifact = asm.artifacts.filter(isAssetManifest)[0]; | ||
test.ok(manifestArtifact); | ||
const manifest = JSON.parse(fs.readFileSync(manifestArtifact.file, { encoding: 'utf-8' })); | ||
const firstFile = (_a = (manifest.files ? manifest.files[Object.keys(manifest.files)[0]] : undefined)) !== null && _a !== void 0 ? _a : {}; | ||
test.deepEqual(firstFile, { | ||
source: { path: 'Stack.template.json', packaging: 'file' }, | ||
destinations: { | ||
'current_account-current_region': { | ||
bucketName: 'cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}', | ||
objectKey: '4bdae6e3b1b15f08c889d6c9133f24731ee14827a9a9ab9b6b6a9b42b6d34910', | ||
assumeRoleArn: 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-publishing-role-${AWS::AccountId}-${AWS::Region}', | ||
}, | ||
}, | ||
}); | ||
test.done(); | ||
}, | ||
'add file asset'(test) { | ||
@@ -43,4 +71,4 @@ // WHEN | ||
// THEN - we have a fixed asset location with region placeholders | ||
test.equals(evalCFN(location.bucketName), 'cdk-bootstrap-hnb659fds-assets-the_account-the_region'); | ||
test.equals(evalCFN(location.s3Url), 'https://s3.the_region.domain.aws/cdk-bootstrap-hnb659fds-assets-the_account-the_region/abcdef'); | ||
test.equals(evalCFN(location.bucketName), 'cdk-hnb659fds-assets-the_account-the_region'); | ||
test.equals(evalCFN(location.s3Url), 'https://s3.the_region.domain.aws/cdk-hnb659fds-assets-the_account-the_region/abcdef'); | ||
// THEN - object key contains source hash somewhere | ||
@@ -57,4 +85,4 @@ test.ok(location.objectKey.indexOf('abcdef') > -1); | ||
// THEN - we have a fixed asset location with region placeholders | ||
test.equals(evalCFN(location.repositoryName), 'cdk-bootstrap-hnb659fds-container-assets-the_account-the_region'); | ||
test.equals(evalCFN(location.imageUri), 'the_account.dkr.ecr.the_region.domain.aws/cdk-bootstrap-hnb659fds-container-assets-the_account-the_region:abcdef'); | ||
test.equals(evalCFN(location.repositoryName), 'cdk-hnb659fds-container-assets-the_account-the_region'); | ||
test.equals(evalCFN(location.imageUri), 'the_account.dkr.ecr.the_region.domain.aws/cdk-hnb659fds-container-assets-the_account-the_region:abcdef'); | ||
test.done(); | ||
@@ -90,2 +118,2 @@ }, | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5uZXctc3R5bGUtc3ludGhlc2lzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC5uZXctc3R5bGUtc3ludGhlc2lzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSx5Q0FBeUM7QUFDekMseUJBQXlCO0FBRXpCLG1DQ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lRFWFQpO1xufVxuXG5mdW5jdGlvbiBpc0Fzc2V0TWFuaWZlc3QoeDogY3hhcGkuQ2xvdWRBcnRpZmFjdCk6IHggaXMgY3hhcGkuQXNzZXRNYW5pZmVzdEFydGlmYWN0IHtcbiAgcmV0dXJuIHggaW5zdGFuY2VvZiBjeGFwaS5Bc3NldE1hbmlmZXN0QXJ0aWZhY3Q7XG59Il19 |
import { Test } from 'nodeunit'; | ||
declare const _default: { | ||
'addFileAsset correctly sets metadata and creates S3 parameters'(test: Test): void; | ||
'addFileAsset correctly sets object urls'(test: Test): void; | ||
'addDockerImageAsset correctly sets metadata'(test: Test): void; | ||
@@ -5,0 +6,0 @@ 'addDockerImageAsset uses the default repository name'(test: Test): void; |
@@ -43,2 +43,17 @@ "use strict"; | ||
}, | ||
'addFileAsset correctly sets object urls'(test) { | ||
// GIVEN | ||
const stack = new lib_1.Stack(); | ||
// WHEN | ||
const assetLocation = stack.addFileAsset({ | ||
fileName: 'file-name', | ||
packaging: lib_1.FileAssetPackaging.ZIP_DIRECTORY, | ||
sourceHash: 'source-hash', | ||
}); | ||
// THEN | ||
const expectedS3UrlPrefix = 's3://'; | ||
const expectedHttpUrlPrefix = `https://s3.${stack.region}.${stack.urlSuffix}/`; | ||
test.equal(assetLocation.s3ObjectUrl.replace(expectedS3UrlPrefix, ''), assetLocation.httpUrl.replace(expectedHttpUrlPrefix, '')); | ||
test.done(); | ||
}, | ||
'addDockerImageAsset correctly sets metadata'(test) { | ||
@@ -113,2 +128,2 @@ // GIVEN | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5hc3NldHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXN0LmFzc2V0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkRBQTJEO0FBRTNELGdDQUFtRDtBQUNuRCxpQ0FBMEM7QUFFMUMsaUJBQVM7SUFDUCxn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zZXRNZXRhZGF0YSA9IHN0YWNrLm5vZGUubWV0YWRhdGEuZmluZCgoeyB0eXBlIH0pID0+IHR5cGUgPT09IGN4c2NoZW1hLkFydGlmYWN0TWV0YWRhdGFFbnRyeVR5cGUuQVNTRVQpO1xuXG4gICAgdGVzdC5vayhhc3NldE1ldGFkYXRhICYmIGFzc2V0TWV0YWRhdGEuZGF0YSk7XG5cbiAgICBpZiAoYXNzZXRNZXRhZGF0YSAmJiBhc3NldE1ldGFkYXRhLmRhdGEpIHtcbiAgICAgIGNvbnN0IGRhdGEgPSBhc3NldE1ldGFkYXRhLmRhdGEgYXMgY3hzY2hlbWEuQ29udGFpbmVySW1hZ2VBc3NldE1ldGFkYXRhRW50cnk7XG4gICAgICB0ZXN0LmVxdWFsKGRhdGEucGFja2FnaW5nLCAnY29udGFpbmVyLWltYWdlJyk7XG4gICAgICB0ZXN0LmVxdWFsKGRhdGEucGF0aCwgJ2RpcmVjdG9yeS1uYW1lJyk7XG4gICAgICB0ZXN0LmVxdWFsKGRhdGEuc291cmNlSGFzaCwgJ3NvdXJjZS1oYXNoJyk7XG4gICAgICB0ZXN0LmVxdWFsKGRhdGEucmVwb3NpdG9yeU5hbWUsICdteS1jdXN0b20tcmVwby1uYW1lJyk7XG4gICAgICB0ZXN0LmVxdWFsKGRhdGEuaW1hZ2VUYWcsICdzb3VyY2UtaGFzaCcpO1xuICAgIH1cblxuICAgIHRlc3QuZGVlcEVxdWFsKHRvQ2xvdWRGb3JtYXRpb24oc3RhY2spLCB7IH0pO1xuICAgIHRlc3QuZG9uZSgpO1xuICB9LFxufTtcbiJdfQ== |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3091782
268
23260
+ Added@aws-cdk/cdk-assets-schema@1.40.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@1.40.0(transitive)
+ Added@aws-cdk/cx-api@1.40.0(transitive)
- Removed@aws-cdk/cdk-assets-schema@1.39.0(transitive)
- Removed@aws-cdk/cloud-assembly-schema@1.39.0(transitive)
- Removed@aws-cdk/cx-api@1.39.0(transitive)
Updated@aws-cdk/cx-api@1.40.0