@goldstack/infra-aws 0.4.0 → 0.4.3
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/dist/src/awsUserUtils.d.ts +9 -9
- package/dist/src/awsUserUtils.js +161 -161
- package/dist/src/infraAws.d.ts +18 -18
- package/dist/src/infraAws.js +111 -111
- package/dist/src/schemas/accountConfigSchema.json +223 -223
- package/dist/src/schemas/awsTerraformStateSchema.json +57 -57
- package/dist/src/schemas/deploymentConfigSchema.json +73 -73
- package/dist/src/types/awsAccount.d.ts +125 -125
- package/dist/src/types/awsAccount.js +2 -2
- package/dist/src/types/awsDeployment.d.ts +17 -17
- package/dist/src/types/awsDeployment.js +2 -2
- package/dist/src/types/awsTerraformState.d.ts +24 -24
- package/dist/src/types/awsTerraformState.js +2 -2
- package/package.json +8 -8
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/AWSDeployment",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"AWSDeployment": {
|
|
6
|
-
"properties": {
|
|
7
|
-
"awsRegion": {
|
|
8
|
-
"$ref": "#/definitions/AWSDeploymentRegion"
|
|
9
|
-
},
|
|
10
|
-
"awsUser": {
|
|
11
|
-
"$ref": "#/definitions/AWSUserName"
|
|
12
|
-
},
|
|
13
|
-
"configuration": {
|
|
14
|
-
"$ref": "#/definitions/DeploymentConfiguration"
|
|
15
|
-
},
|
|
16
|
-
"name": {
|
|
17
|
-
"$ref": "#/definitions/DeploymentName"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"required": [
|
|
21
|
-
"awsRegion",
|
|
22
|
-
"awsUser",
|
|
23
|
-
"configuration",
|
|
24
|
-
"name"
|
|
25
|
-
],
|
|
26
|
-
"type": "object"
|
|
27
|
-
},
|
|
28
|
-
"AWSDeploymentRegion": {
|
|
29
|
-
"description": "AWS region that infrastructure should be deployed to.",
|
|
30
|
-
"enum": [
|
|
31
|
-
"us-east-1",
|
|
32
|
-
"us-east-2",
|
|
33
|
-
"us-west-1",
|
|
34
|
-
"us-west-2",
|
|
35
|
-
"af-south-1",
|
|
36
|
-
"ap-east-1",
|
|
37
|
-
"ap-south-1",
|
|
38
|
-
"ap-northeast-3",
|
|
39
|
-
"ap-northeast-2",
|
|
40
|
-
"ap-southeast-1",
|
|
41
|
-
"ap-southeast-2",
|
|
42
|
-
"ap-northeast-1",
|
|
43
|
-
"ca-central-1",
|
|
44
|
-
"eu-central-1",
|
|
45
|
-
"eu-west-1",
|
|
46
|
-
"eu-west-2",
|
|
47
|
-
"eu-south-1",
|
|
48
|
-
"eu-west-3",
|
|
49
|
-
"eu-north-1",
|
|
50
|
-
"me-south-1",
|
|
51
|
-
"sa-east-1"
|
|
52
|
-
],
|
|
53
|
-
"title": "AWS Deployment Region",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
"AWSUserName": {
|
|
57
|
-
"description": "Name of the AWS user that is used to perform the deployment.",
|
|
58
|
-
"title": "AWS User Name",
|
|
59
|
-
"type": "string"
|
|
60
|
-
},
|
|
61
|
-
"DeploymentConfiguration": {
|
|
62
|
-
"description": "Specifies configuration for a specific deployment.",
|
|
63
|
-
"title": "Deployment Configuration",
|
|
64
|
-
"type": "object"
|
|
65
|
-
},
|
|
66
|
-
"DeploymentName": {
|
|
67
|
-
"description": "Identifier for this deployment. No spaces allowed in name.",
|
|
68
|
-
"pattern": "^[^\\s]*$",
|
|
69
|
-
"title": "Deployment Name",
|
|
70
|
-
"type": "string"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AWSDeployment",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AWSDeployment": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"awsRegion": {
|
|
8
|
+
"$ref": "#/definitions/AWSDeploymentRegion"
|
|
9
|
+
},
|
|
10
|
+
"awsUser": {
|
|
11
|
+
"$ref": "#/definitions/AWSUserName"
|
|
12
|
+
},
|
|
13
|
+
"configuration": {
|
|
14
|
+
"$ref": "#/definitions/DeploymentConfiguration"
|
|
15
|
+
},
|
|
16
|
+
"name": {
|
|
17
|
+
"$ref": "#/definitions/DeploymentName"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"awsRegion",
|
|
22
|
+
"awsUser",
|
|
23
|
+
"configuration",
|
|
24
|
+
"name"
|
|
25
|
+
],
|
|
26
|
+
"type": "object"
|
|
27
|
+
},
|
|
28
|
+
"AWSDeploymentRegion": {
|
|
29
|
+
"description": "AWS region that infrastructure should be deployed to.",
|
|
30
|
+
"enum": [
|
|
31
|
+
"us-east-1",
|
|
32
|
+
"us-east-2",
|
|
33
|
+
"us-west-1",
|
|
34
|
+
"us-west-2",
|
|
35
|
+
"af-south-1",
|
|
36
|
+
"ap-east-1",
|
|
37
|
+
"ap-south-1",
|
|
38
|
+
"ap-northeast-3",
|
|
39
|
+
"ap-northeast-2",
|
|
40
|
+
"ap-southeast-1",
|
|
41
|
+
"ap-southeast-2",
|
|
42
|
+
"ap-northeast-1",
|
|
43
|
+
"ca-central-1",
|
|
44
|
+
"eu-central-1",
|
|
45
|
+
"eu-west-1",
|
|
46
|
+
"eu-west-2",
|
|
47
|
+
"eu-south-1",
|
|
48
|
+
"eu-west-3",
|
|
49
|
+
"eu-north-1",
|
|
50
|
+
"me-south-1",
|
|
51
|
+
"sa-east-1"
|
|
52
|
+
],
|
|
53
|
+
"title": "AWS Deployment Region",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"AWSUserName": {
|
|
57
|
+
"description": "Name of the AWS user that is used to perform the deployment.",
|
|
58
|
+
"title": "AWS User Name",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"DeploymentConfiguration": {
|
|
62
|
+
"description": "Specifies configuration for a specific deployment.",
|
|
63
|
+
"title": "Deployment Configuration",
|
|
64
|
+
"type": "object"
|
|
65
|
+
},
|
|
66
|
+
"DeploymentName": {
|
|
67
|
+
"description": "Identifier for this deployment. No spaces allowed in name.",
|
|
68
|
+
"pattern": "^[^\\s]*$",
|
|
69
|
+
"title": "Deployment Name",
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { AWSDeploymentRegion } from './awsDeployment';
|
|
2
|
-
export declare type AWSUsers = AWSUser[];
|
|
3
|
-
/**
|
|
4
|
-
* Identifier for this user. No spaces allowed.
|
|
5
|
-
*
|
|
6
|
-
* @title Name
|
|
7
|
-
* @pattern ^[^\s]*$
|
|
8
|
-
*/
|
|
9
|
-
export declare type Name = string;
|
|
10
|
-
/**
|
|
11
|
-
* Type of this user.
|
|
12
|
-
*
|
|
13
|
-
* @title Type
|
|
14
|
-
*/
|
|
15
|
-
export declare type Type = 'apiKey' | 'profile' | 'environmentVariables';
|
|
16
|
-
/**
|
|
17
|
-
* Profile name of the user configured with the aws cli. When in doubt, use `default`.
|
|
18
|
-
*
|
|
19
|
-
* @title Profile
|
|
20
|
-
* @pattern ^[^\s]*$
|
|
21
|
-
*/
|
|
22
|
-
export declare type Profile = string;
|
|
23
|
-
/**
|
|
24
|
-
* Name of environment variable for AWS Access Key Id. When in doubt, use AWS_ACCESS_KEY_ID.
|
|
25
|
-
*
|
|
26
|
-
* @title AWS Access Key Id Variable Name
|
|
27
|
-
* @pattern ^[^\s]*$
|
|
28
|
-
*/
|
|
29
|
-
export declare type AWSAccessKeyIdVariableName = string;
|
|
30
|
-
/**
|
|
31
|
-
* Name of environment variable for AWS Secret Access Key. When in doubt, use AWS_SECRET_ACCESS_KEY.
|
|
32
|
-
*
|
|
33
|
-
* @title AWS Secret Access Key Variable Name
|
|
34
|
-
* @pattern ^[^\s]*$
|
|
35
|
-
*/
|
|
36
|
-
export declare type AWSSecretAccessKeyVariableName = string;
|
|
37
|
-
/**
|
|
38
|
-
* Name of environment variable for AWS Default Region. When in doubt, use AWS_DEFAULT_REGION.
|
|
39
|
-
*
|
|
40
|
-
* @title AWS Default Region Varialbe Name
|
|
41
|
-
* @pattern ^[^\s]*$
|
|
42
|
-
*/
|
|
43
|
-
export declare type AWSDefaultRegionVariableName = string;
|
|
44
|
-
/**
|
|
45
|
-
* Access key for this user.
|
|
46
|
-
*
|
|
47
|
-
* @title AWS Access Key Id
|
|
48
|
-
* @pattern ^[^\s]*$
|
|
49
|
-
*/
|
|
50
|
-
export declare type AWSAccessKeyId = string;
|
|
51
|
-
/**
|
|
52
|
-
* Secret key for this user.
|
|
53
|
-
*
|
|
54
|
-
* @title AWS Secret Access Key
|
|
55
|
-
* @pattern ^[^\s]*$
|
|
56
|
-
*/
|
|
57
|
-
export declare type AWSSecretAccessKey = string;
|
|
58
|
-
/**
|
|
59
|
-
* Default AWS region to use.
|
|
60
|
-
*
|
|
61
|
-
* @title AWS Region
|
|
62
|
-
* @pattern ^[^\s]*$
|
|
63
|
-
*/
|
|
64
|
-
export declare type AWSRegion = AWSDeploymentRegion;
|
|
65
|
-
export declare type CredentialsSource = 'process';
|
|
66
|
-
/**
|
|
67
|
-
* User that is configured using the aws cli. Useful for development environments.
|
|
68
|
-
*
|
|
69
|
-
* @title AWS Local User Configuration
|
|
70
|
-
*/
|
|
71
|
-
export interface AWSProfileConfig {
|
|
72
|
-
profile: Profile;
|
|
73
|
-
awsDefaultRegion: AWSRegion;
|
|
74
|
-
/**
|
|
75
|
-
* Path to the AWS configuration, e.g. `~/.aws/credentials`. If environment variable `AWS_SHARED_CREDENTIALS_FILE` is set, this is ignored.
|
|
76
|
-
*/
|
|
77
|
-
awsCredentialsFileName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Path to the AWS configuration, e.g. `~/.aws/config`. If environment variable `AWS_CONFIG_FILE` is set, this is ignored.
|
|
80
|
-
*/
|
|
81
|
-
awsConfigFileName?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Set to `process`, if credentials should be loaded by running a `credential-process` defined in the AWS credentials configuration. See https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
|
|
84
|
-
*/
|
|
85
|
-
credentialsSource?: CredentialsSource;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Obtain AWS user from environment variables. This will be useful for CI/CD.
|
|
89
|
-
*
|
|
90
|
-
* @title AWS Environment Variable User Configuration
|
|
91
|
-
*/
|
|
92
|
-
export interface AWSEnvironmentVariableUserConfig {
|
|
93
|
-
awsAccessKeyIdVariableName: AWSAccessKeyIdVariableName;
|
|
94
|
-
awsSecretAccessKeyVariableName: AWSSecretAccessKeyVariableName;
|
|
95
|
-
awsDefaultRegionVariableName: AWSDefaultRegionVariableName;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* User accessing AWS using an access key id and secret access key. Only recommended for users used during development. The provided credentials will be included in the downloaded package but by default will not be committed to git.
|
|
99
|
-
*
|
|
100
|
-
* @title AWS API Key User Configuration
|
|
101
|
-
*/
|
|
102
|
-
export interface AWSAPIKeyUserConfig {
|
|
103
|
-
awsAccessKeyId?: AWSAccessKeyId;
|
|
104
|
-
awsSecretAccessKey?: AWSSecretAccessKey;
|
|
105
|
-
awsDefaultRegion: AWSRegion;
|
|
106
|
-
}
|
|
107
|
-
export declare type AwsUserConfig = AWSProfileConfig | AWSEnvironmentVariableUserConfig | AWSAPIKeyUserConfig;
|
|
108
|
-
/**
|
|
109
|
-
* AWS user
|
|
110
|
-
*
|
|
111
|
-
* @title AWS User
|
|
112
|
-
*/
|
|
113
|
-
export interface AWSUser {
|
|
114
|
-
name: Name;
|
|
115
|
-
type: Type;
|
|
116
|
-
config: AwsUserConfig;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Global configuration for deploying to AWS.
|
|
120
|
-
*
|
|
121
|
-
* @title AWS Configuration
|
|
122
|
-
*/
|
|
123
|
-
export interface AWSConfiguration {
|
|
124
|
-
users: AWSUsers;
|
|
125
|
-
}
|
|
1
|
+
import { AWSDeploymentRegion } from './awsDeployment';
|
|
2
|
+
export declare type AWSUsers = AWSUser[];
|
|
3
|
+
/**
|
|
4
|
+
* Identifier for this user. No spaces allowed.
|
|
5
|
+
*
|
|
6
|
+
* @title Name
|
|
7
|
+
* @pattern ^[^\s]*$
|
|
8
|
+
*/
|
|
9
|
+
export declare type Name = string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of this user.
|
|
12
|
+
*
|
|
13
|
+
* @title Type
|
|
14
|
+
*/
|
|
15
|
+
export declare type Type = 'apiKey' | 'profile' | 'environmentVariables';
|
|
16
|
+
/**
|
|
17
|
+
* Profile name of the user configured with the aws cli. When in doubt, use `default`.
|
|
18
|
+
*
|
|
19
|
+
* @title Profile
|
|
20
|
+
* @pattern ^[^\s]*$
|
|
21
|
+
*/
|
|
22
|
+
export declare type Profile = string;
|
|
23
|
+
/**
|
|
24
|
+
* Name of environment variable for AWS Access Key Id. When in doubt, use AWS_ACCESS_KEY_ID.
|
|
25
|
+
*
|
|
26
|
+
* @title AWS Access Key Id Variable Name
|
|
27
|
+
* @pattern ^[^\s]*$
|
|
28
|
+
*/
|
|
29
|
+
export declare type AWSAccessKeyIdVariableName = string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of environment variable for AWS Secret Access Key. When in doubt, use AWS_SECRET_ACCESS_KEY.
|
|
32
|
+
*
|
|
33
|
+
* @title AWS Secret Access Key Variable Name
|
|
34
|
+
* @pattern ^[^\s]*$
|
|
35
|
+
*/
|
|
36
|
+
export declare type AWSSecretAccessKeyVariableName = string;
|
|
37
|
+
/**
|
|
38
|
+
* Name of environment variable for AWS Default Region. When in doubt, use AWS_DEFAULT_REGION.
|
|
39
|
+
*
|
|
40
|
+
* @title AWS Default Region Varialbe Name
|
|
41
|
+
* @pattern ^[^\s]*$
|
|
42
|
+
*/
|
|
43
|
+
export declare type AWSDefaultRegionVariableName = string;
|
|
44
|
+
/**
|
|
45
|
+
* Access key for this user.
|
|
46
|
+
*
|
|
47
|
+
* @title AWS Access Key Id
|
|
48
|
+
* @pattern ^[^\s]*$
|
|
49
|
+
*/
|
|
50
|
+
export declare type AWSAccessKeyId = string;
|
|
51
|
+
/**
|
|
52
|
+
* Secret key for this user.
|
|
53
|
+
*
|
|
54
|
+
* @title AWS Secret Access Key
|
|
55
|
+
* @pattern ^[^\s]*$
|
|
56
|
+
*/
|
|
57
|
+
export declare type AWSSecretAccessKey = string;
|
|
58
|
+
/**
|
|
59
|
+
* Default AWS region to use.
|
|
60
|
+
*
|
|
61
|
+
* @title AWS Region
|
|
62
|
+
* @pattern ^[^\s]*$
|
|
63
|
+
*/
|
|
64
|
+
export declare type AWSRegion = AWSDeploymentRegion;
|
|
65
|
+
export declare type CredentialsSource = 'process';
|
|
66
|
+
/**
|
|
67
|
+
* User that is configured using the aws cli. Useful for development environments.
|
|
68
|
+
*
|
|
69
|
+
* @title AWS Local User Configuration
|
|
70
|
+
*/
|
|
71
|
+
export interface AWSProfileConfig {
|
|
72
|
+
profile: Profile;
|
|
73
|
+
awsDefaultRegion: AWSRegion;
|
|
74
|
+
/**
|
|
75
|
+
* Path to the AWS configuration, e.g. `~/.aws/credentials`. If environment variable `AWS_SHARED_CREDENTIALS_FILE` is set, this is ignored.
|
|
76
|
+
*/
|
|
77
|
+
awsCredentialsFileName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Path to the AWS configuration, e.g. `~/.aws/config`. If environment variable `AWS_CONFIG_FILE` is set, this is ignored.
|
|
80
|
+
*/
|
|
81
|
+
awsConfigFileName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Set to `process`, if credentials should be loaded by running a `credential-process` defined in the AWS credentials configuration. See https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
|
|
84
|
+
*/
|
|
85
|
+
credentialsSource?: CredentialsSource;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Obtain AWS user from environment variables. This will be useful for CI/CD.
|
|
89
|
+
*
|
|
90
|
+
* @title AWS Environment Variable User Configuration
|
|
91
|
+
*/
|
|
92
|
+
export interface AWSEnvironmentVariableUserConfig {
|
|
93
|
+
awsAccessKeyIdVariableName: AWSAccessKeyIdVariableName;
|
|
94
|
+
awsSecretAccessKeyVariableName: AWSSecretAccessKeyVariableName;
|
|
95
|
+
awsDefaultRegionVariableName: AWSDefaultRegionVariableName;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* User accessing AWS using an access key id and secret access key. Only recommended for users used during development. The provided credentials will be included in the downloaded package but by default will not be committed to git.
|
|
99
|
+
*
|
|
100
|
+
* @title AWS API Key User Configuration
|
|
101
|
+
*/
|
|
102
|
+
export interface AWSAPIKeyUserConfig {
|
|
103
|
+
awsAccessKeyId?: AWSAccessKeyId;
|
|
104
|
+
awsSecretAccessKey?: AWSSecretAccessKey;
|
|
105
|
+
awsDefaultRegion: AWSRegion;
|
|
106
|
+
}
|
|
107
|
+
export declare type AwsUserConfig = AWSProfileConfig | AWSEnvironmentVariableUserConfig | AWSAPIKeyUserConfig;
|
|
108
|
+
/**
|
|
109
|
+
* AWS user
|
|
110
|
+
*
|
|
111
|
+
* @title AWS User
|
|
112
|
+
*/
|
|
113
|
+
export interface AWSUser {
|
|
114
|
+
name: Name;
|
|
115
|
+
type: Type;
|
|
116
|
+
config: AwsUserConfig;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Global configuration for deploying to AWS.
|
|
120
|
+
*
|
|
121
|
+
* @title AWS Configuration
|
|
122
|
+
*/
|
|
123
|
+
export interface AWSConfiguration {
|
|
124
|
+
users: AWSUsers;
|
|
125
|
+
}
|
|
126
126
|
//# sourceMappingURL=awsAccount.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=awsAccount.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Deployment } from '@goldstack/infra';
|
|
2
|
-
/**
|
|
3
|
-
* AWS region that infrastructure should be deployed to.
|
|
4
|
-
*
|
|
5
|
-
* @title AWS Deployment Region
|
|
6
|
-
*/
|
|
7
|
-
export declare type AWSDeploymentRegion = 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'af-south-1' | 'ap-east-1' | 'ap-south-1' | 'ap-northeast-3' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-south-1' | 'eu-west-3' | 'eu-north-1' | 'me-south-1' | 'sa-east-1';
|
|
8
|
-
/**
|
|
9
|
-
* Name of the AWS user that is used to perform the deployment.
|
|
10
|
-
*
|
|
11
|
-
* @title AWS User Name
|
|
12
|
-
*/
|
|
13
|
-
export declare type AWSUserName = string;
|
|
14
|
-
export interface AWSDeployment extends Deployment {
|
|
15
|
-
awsRegion: AWSDeploymentRegion;
|
|
16
|
-
awsUser: AWSUserName;
|
|
17
|
-
}
|
|
1
|
+
import { Deployment } from '@goldstack/infra';
|
|
2
|
+
/**
|
|
3
|
+
* AWS region that infrastructure should be deployed to.
|
|
4
|
+
*
|
|
5
|
+
* @title AWS Deployment Region
|
|
6
|
+
*/
|
|
7
|
+
export declare type AWSDeploymentRegion = 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'af-south-1' | 'ap-east-1' | 'ap-south-1' | 'ap-northeast-3' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'ca-central-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-south-1' | 'eu-west-3' | 'eu-north-1' | 'me-south-1' | 'sa-east-1';
|
|
8
|
+
/**
|
|
9
|
+
* Name of the AWS user that is used to perform the deployment.
|
|
10
|
+
*
|
|
11
|
+
* @title AWS User Name
|
|
12
|
+
*/
|
|
13
|
+
export declare type AWSUserName = string;
|
|
14
|
+
export interface AWSDeployment extends Deployment {
|
|
15
|
+
awsRegion: AWSDeploymentRegion;
|
|
16
|
+
awsUser: AWSUserName;
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=awsDeployment.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=awsDeployment.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Name } from './awsAccount';
|
|
2
|
-
/**
|
|
3
|
-
* The name of the bucket where the Terraform state for the packages will be stored.
|
|
4
|
-
* If not provided, will be auto-generated on first deployment.
|
|
5
|
-
*
|
|
6
|
-
* @title Terraform State Bucket
|
|
7
|
-
* @pattern ^[^\s]*$
|
|
8
|
-
*/
|
|
9
|
-
export declare type TerraformStateBucket = string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the DynamoDB table used for Terraform state locking. If not provided, will be auto-generated on first deployment.
|
|
12
|
-
*
|
|
13
|
-
* @title Terraform DynamoDB Table
|
|
14
|
-
* @pattern ^[^\s]*$
|
|
15
|
-
*/
|
|
16
|
-
export declare type TerraformDynamoDBTable = string;
|
|
17
|
-
export interface RemoteState {
|
|
18
|
-
user: Name;
|
|
19
|
-
terraformStateBucket?: TerraformStateBucket;
|
|
20
|
-
terraformStateDynamoDBTable?: TerraformDynamoDBTable;
|
|
21
|
-
}
|
|
22
|
-
export interface AWSTerraformState {
|
|
23
|
-
remoteState: RemoteState[];
|
|
24
|
-
}
|
|
1
|
+
import { Name } from './awsAccount';
|
|
2
|
+
/**
|
|
3
|
+
* The name of the bucket where the Terraform state for the packages will be stored.
|
|
4
|
+
* If not provided, will be auto-generated on first deployment.
|
|
5
|
+
*
|
|
6
|
+
* @title Terraform State Bucket
|
|
7
|
+
* @pattern ^[^\s]*$
|
|
8
|
+
*/
|
|
9
|
+
export declare type TerraformStateBucket = string;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the DynamoDB table used for Terraform state locking. If not provided, will be auto-generated on first deployment.
|
|
12
|
+
*
|
|
13
|
+
* @title Terraform DynamoDB Table
|
|
14
|
+
* @pattern ^[^\s]*$
|
|
15
|
+
*/
|
|
16
|
+
export declare type TerraformDynamoDBTable = string;
|
|
17
|
+
export interface RemoteState {
|
|
18
|
+
user: Name;
|
|
19
|
+
terraformStateBucket?: TerraformStateBucket;
|
|
20
|
+
terraformStateDynamoDBTable?: TerraformDynamoDBTable;
|
|
21
|
+
}
|
|
22
|
+
export interface AWSTerraformState {
|
|
23
|
+
remoteState: RemoteState[];
|
|
24
|
+
}
|
|
25
25
|
//# sourceMappingURL=awsTerraformState.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=awsTerraformState.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/infra-aws",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Utilities to work with AWS infrastructure via the cli.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@goldstack/infra": "0.4.
|
|
43
|
-
"@goldstack/utils-config": "0.4.
|
|
44
|
-
"@goldstack/utils-log": "0.3.
|
|
45
|
-
"@goldstack/utils-package": "0.4.
|
|
46
|
-
"@goldstack/utils-sh": "0.5.
|
|
42
|
+
"@goldstack/infra": "0.4.2",
|
|
43
|
+
"@goldstack/utils-config": "0.4.2",
|
|
44
|
+
"@goldstack/utils-log": "0.3.2",
|
|
45
|
+
"@goldstack/utils-package": "0.4.2",
|
|
46
|
+
"@goldstack/utils-sh": "0.5.2",
|
|
47
47
|
"aws-sdk": "2.1055.0",
|
|
48
48
|
"axios": "0.21.2",
|
|
49
49
|
"handlebars": "4.7.7"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@goldstack/utils-git": "0.2.
|
|
53
|
-
"@types/jest": "^
|
|
52
|
+
"@goldstack/utils-git": "0.2.2",
|
|
53
|
+
"@types/jest": "^29.0.1",
|
|
54
54
|
"@types/node": "^18.7.13",
|
|
55
55
|
"jest": "^28.1.0",
|
|
56
56
|
"renamer": "^0.7.0",
|