@pulumi/awsx 2.21.0-alpha.2 → 2.21.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/ecr/index.d.ts +3 -0
- package/ecr/index.js +5 -1
- package/ecr/index.js.map +1 -1
- package/ecr/registryImage.d.ts +70 -0
- package/ecr/registryImage.js +72 -0
- package/ecr/registryImage.js.map +1 -0
- package/package.json +3 -2
package/ecr/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { ImageArgs } from "./image";
|
|
2
2
|
export type Image = import("./image").Image;
|
|
3
3
|
export declare const Image: typeof import("./image").Image;
|
|
4
|
+
export { RegistryImageArgs } from "./registryImage";
|
|
5
|
+
export type RegistryImage = import("./registryImage").RegistryImage;
|
|
6
|
+
export declare const RegistryImage: typeof import("./registryImage").RegistryImage;
|
|
4
7
|
export { RepositoryArgs } from "./repository";
|
|
5
8
|
export type Repository = import("./repository").Repository;
|
|
6
9
|
export declare const Repository: typeof import("./repository").Repository;
|
package/ecr/index.js
CHANGED
|
@@ -16,11 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.Repository = exports.Image = void 0;
|
|
19
|
+
exports.Repository = exports.RegistryImage = exports.Image = void 0;
|
|
20
20
|
const pulumi = require("@pulumi/pulumi");
|
|
21
21
|
const utilities = require("../utilities");
|
|
22
22
|
exports.Image = null;
|
|
23
23
|
utilities.lazyLoad(exports, ["Image"], () => require("./image"));
|
|
24
|
+
exports.RegistryImage = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["RegistryImage"], () => require("./registryImage"));
|
|
24
26
|
exports.Repository = null;
|
|
25
27
|
utilities.lazyLoad(exports, ["Repository"], () => require("./repository"));
|
|
26
28
|
// Export enums:
|
|
@@ -31,6 +33,8 @@ const _module = {
|
|
|
31
33
|
switch (type) {
|
|
32
34
|
case "awsx:ecr:Image":
|
|
33
35
|
return new exports.Image(name, undefined, { urn });
|
|
36
|
+
case "awsx:ecr:RegistryImage":
|
|
37
|
+
return new exports.RegistryImage(name, undefined, { urn });
|
|
34
38
|
case "awsx:ecr:Repository":
|
|
35
39
|
return new exports.Repository(name, undefined, { urn });
|
|
36
40
|
default:
|
package/ecr/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../ecr/index.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAG3E,gBAAgB;AAChB,qDAAmC;AAEnC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,gBAAgB;gBACjB,OAAO,IAAI,aAAK,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACnD,KAAK,qBAAqB;gBACtB,OAAO,IAAI,kBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD;gBACI,MAAM,IAAI,K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IAAI,kBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as pulumiDocker from "@pulumi/docker";
|
|
3
|
+
/**
|
|
4
|
+
* Manages the lifecycle of a docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again. In contrast to [`awsx.ecr.Image`](/registry/packages/awsx/api-docs/ecr/image/), this resource does not require to build the image, but can be used to push an existing image to an ECR repository. The image will be pushed whenever the source image changes or is updated.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
* ### Pushing an image to an ECR repository
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as awsx from "@pulumi/awsx";
|
|
12
|
+
*
|
|
13
|
+
* const repository = new awsx.ecr.Repository("repository", { forceDelete: true });
|
|
14
|
+
*
|
|
15
|
+
* const preTaggedImage = new awsx.ecr.RegistryImage("registry-image", {
|
|
16
|
+
* repositoryUrl: repository.url,
|
|
17
|
+
* sourceImage: "my-awesome-image:v1.0.0",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class RegistryImage extends pulumi.ComponentResource {
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of RegistryImage. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is RegistryImage;
|
|
27
|
+
/**
|
|
28
|
+
* The underlying RegistryImage resource.
|
|
29
|
+
*/
|
|
30
|
+
readonly image: pulumi.Output<pulumiDocker.RegistryImage>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a RegistryImage resource with the given unique name, arguments, and options.
|
|
33
|
+
*
|
|
34
|
+
* @param name The _unique_ name of the resource.
|
|
35
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
36
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
37
|
+
*/
|
|
38
|
+
constructor(name: string, args: RegistryImageArgs, opts?: pulumi.ComponentResourceOptions);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The set of arguments for constructing a RegistryImage resource.
|
|
42
|
+
*/
|
|
43
|
+
export interface RegistryImageArgs {
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
|
46
|
+
*/
|
|
47
|
+
insecureSkipVerify?: pulumi.Input<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
|
50
|
+
*/
|
|
51
|
+
keepRemotely?: pulumi.Input<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).
|
|
54
|
+
*/
|
|
55
|
+
repositoryUrl: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The source image to push to the registry.
|
|
58
|
+
*/
|
|
59
|
+
sourceImage: pulumi.Input<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The tag to use for the pushed image. If not provided, it defaults to `latest`.
|
|
62
|
+
*/
|
|
63
|
+
tag?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* A map of arbitrary strings that, when changed, will force the `docker.RegistryImage` resource to be replaced. This can be used to repush a local image
|
|
66
|
+
*/
|
|
67
|
+
triggers?: pulumi.Input<{
|
|
68
|
+
[key: string]: pulumi.Input<string>;
|
|
69
|
+
}>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-gen-awsx. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RegistryImage = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages the lifecycle of a docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again. In contrast to [`awsx.ecr.Image`](/registry/packages/awsx/api-docs/ecr/image/), this resource does not require to build the image, but can be used to push an existing image to an ECR repository. The image will be pushed whenever the source image changes or is updated.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
* ### Pushing an image to an ECR repository
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as awsx from "@pulumi/awsx";
|
|
17
|
+
*
|
|
18
|
+
* const repository = new awsx.ecr.Repository("repository", { forceDelete: true });
|
|
19
|
+
*
|
|
20
|
+
* const preTaggedImage = new awsx.ecr.RegistryImage("registry-image", {
|
|
21
|
+
* repositoryUrl: repository.url,
|
|
22
|
+
* sourceImage: "my-awesome-image:v1.0.0",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class RegistryImage extends pulumi.ComponentResource {
|
|
27
|
+
/**
|
|
28
|
+
* Returns true if the given object is an instance of RegistryImage. This is designed to work even
|
|
29
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
30
|
+
*/
|
|
31
|
+
static isInstance(obj) {
|
|
32
|
+
if (obj === undefined || obj === null) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return obj['__pulumiType'] === RegistryImage.__pulumiType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a RegistryImage resource with the given unique name, arguments, and options.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resource.
|
|
41
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
42
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
43
|
+
*/
|
|
44
|
+
constructor(name, args, opts) {
|
|
45
|
+
let resourceInputs = {};
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
if (!opts.id) {
|
|
48
|
+
if ((!args || args.repositoryUrl === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'repositoryUrl'");
|
|
50
|
+
}
|
|
51
|
+
if ((!args || args.sourceImage === undefined) && !opts.urn) {
|
|
52
|
+
throw new Error("Missing required property 'sourceImage'");
|
|
53
|
+
}
|
|
54
|
+
resourceInputs["insecureSkipVerify"] = args ? args.insecureSkipVerify : undefined;
|
|
55
|
+
resourceInputs["keepRemotely"] = args ? args.keepRemotely : undefined;
|
|
56
|
+
resourceInputs["repositoryUrl"] = args ? args.repositoryUrl : undefined;
|
|
57
|
+
resourceInputs["sourceImage"] = args ? args.sourceImage : undefined;
|
|
58
|
+
resourceInputs["tag"] = args ? args.tag : undefined;
|
|
59
|
+
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
60
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
resourceInputs["image"] = undefined /*out*/;
|
|
64
|
+
}
|
|
65
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
66
|
+
super(RegistryImage.__pulumiType, name, resourceInputs, opts, true /*remote*/);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.RegistryImage = RegistryImage;
|
|
70
|
+
/** @internal */
|
|
71
|
+
RegistryImage.__pulumiType = 'awsx:ecr:RegistryImage';
|
|
72
|
+
//# sourceMappingURL=registryImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registryIm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,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;aAAM;YACH,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACnF,CAAC;;AAjDL,sCAkDC;AAjDG,gBAAgB;AACO,0BAAY,GAAG,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/awsx",
|
|
3
|
-
"version": "2.21.0
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"aws",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-ecs": "^3.405.0",
|
|
19
19
|
"@pulumi/aws": "^6.66.2",
|
|
20
|
+
"@pulumi/docker": "^4.6.0",
|
|
20
21
|
"@pulumi/docker-build": "^0.0.8",
|
|
21
22
|
"@pulumi/pulumi": "^3.142.0",
|
|
22
23
|
"@types/aws-lambda": "^8.10.23",
|
|
@@ -31,6 +32,6 @@
|
|
|
31
32
|
"pulumi": {
|
|
32
33
|
"resource": true,
|
|
33
34
|
"name": "awsx",
|
|
34
|
-
"version": "2.21.0
|
|
35
|
+
"version": "2.21.0"
|
|
35
36
|
}
|
|
36
37
|
}
|