takomo 7.2.0 → 7.2.1
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/cli/stacks/emit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deployStacksCommand } from "../../command/stacks/deploy/command.js";
|
|
2
|
-
import {
|
|
2
|
+
import { emitStackTemplatesCommandIamPolicy } from "../../command/stacks/deploy/iam-policy.js";
|
|
3
3
|
import { createFileSystemStacksConfigRepository } from "../../takomo-config-repository-fs/stacks/config-repository.js";
|
|
4
4
|
import { ROOT_STACK_GROUP_PATH } from "../../takomo-stacks-model/constants.js";
|
|
5
5
|
import { commonEpilog, handle } from "../common.js";
|
|
@@ -9,7 +9,7 @@ import { createEmitStackTemplatesIO } from "../../cli-io/stacks/deploy-stacks/em
|
|
|
9
9
|
const command = `emit [${COMMAND_PATH_OPT}]`;
|
|
10
10
|
const describe = "Emit stack templates within the given command path";
|
|
11
11
|
const builder = (yargs) => yargs
|
|
12
|
-
.epilog(commonEpilog(
|
|
12
|
+
.epilog(commonEpilog(emitStackTemplatesCommandIamPolicy))
|
|
13
13
|
.example("$0 emit /networking", "Emit stack templates within /networking path to stdout")
|
|
14
14
|
.example("$0 emit /networking/vpc.yml", "Emit only template of /networking/vpc.yml stack to stdout")
|
|
15
15
|
.example("$0 emit --out-dir /tmp", "Emit all stack templates to /tmp dir")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../src/cli/stacks/emit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../src/cli/stacks/emit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CA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uB,CAAC;QACjD,WAAW,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACnC,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,IAAI,EAAE,IAAI;QACV,eAAe,EAAE,KAAK;QACtB,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC;QACzB,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC;QAC/B,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC;KAC1C,CAAC;IACF,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3D,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAChC,sCAAsC,CAAC;QACrC,GAAG;QACH,MAAM;QACN,GAAG,GAAG,CAAC,SAAS;KACjB,CAAC;IACJ,QAAQ,EAAE,mBAAmB;CAC9B,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,iBAAiB,GACR,EAA2C,EAAE,CAAC,CAAC;IACxD,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO,EAAE,iBAAiB,IAAI,OAAO;CACtC,CAAC,CAAA"}
|
|
@@ -36,4 +36,33 @@ Statement:
|
|
|
36
36
|
- sts:AssumeRole
|
|
37
37
|
Resource: "*"
|
|
38
38
|
`;
|
|
39
|
+
export const emitStackTemplatesCommandIamPolicy = () => `
|
|
40
|
+
# Minimum permissions. Additional permissions might be needed if hooks or
|
|
41
|
+
# parameter resolvers are used.
|
|
42
|
+
Statement:
|
|
43
|
+
- Sid: CloudFormation
|
|
44
|
+
Effect: Allow
|
|
45
|
+
Action:
|
|
46
|
+
- cloudformation:GetTemplate
|
|
47
|
+
- cloudformation:ValidateTemplate
|
|
48
|
+
- cloudformation:DescribeStacks
|
|
49
|
+
- cloudformation:GetTemplateSummary
|
|
50
|
+
Resource: "*"
|
|
51
|
+
|
|
52
|
+
# S3 permissions needed only if template bucket is used.
|
|
53
|
+
# Specify resource to restrict access to specific buckets.
|
|
54
|
+
- Sid: S3
|
|
55
|
+
Effect: Allow
|
|
56
|
+
Action:
|
|
57
|
+
- s3:PutObject
|
|
58
|
+
Resource: "*"
|
|
59
|
+
|
|
60
|
+
# IAM permissions needed only if command roles are used
|
|
61
|
+
# Specify resource to restrict access to specific roles.
|
|
62
|
+
- Sid: IAM
|
|
63
|
+
Effect: Allow
|
|
64
|
+
Action:
|
|
65
|
+
- sts:AssumeRole
|
|
66
|
+
Resource: "*"
|
|
67
|
+
`;
|
|
39
68
|
//# sourceMappingURL=iam-policy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam-policy.js","sourceRoot":"","sources":["../../../../src/command/stacks/deploy/iam-policy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCzD,CAAA"}
|
|
1
|
+
{"version":3,"file":"iam-policy.js","sourceRoot":"","sources":["../../../../src/command/stacks/deploy/iam-policy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCzD,CAAA;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B/D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "takomo",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Organize, configure and deploy CloudFormation stacks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"ts-jest": "29.2.5",
|
|
83
83
|
"@jest/globals": "29.7.0",
|
|
84
|
-
"@aws-sdk/client-ec2": "3.
|
|
85
|
-
"@commitlint/cli": "19.
|
|
86
|
-
"@commitlint/config-conventional": "19.
|
|
84
|
+
"@aws-sdk/client-ec2": "3.709.0",
|
|
85
|
+
"@commitlint/cli": "19.6.0",
|
|
86
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
87
87
|
"@jest/console": "29.7.0",
|
|
88
88
|
"@takomo/test-custom-helper-lowercase": "0.0.1",
|
|
89
89
|
"@takomo/test-custom-helper-uppercase": "0.0.1",
|
|
@@ -102,49 +102,49 @@
|
|
|
102
102
|
"@types/yargs": "17.0.33",
|
|
103
103
|
"@types/ejs": "3.1.5",
|
|
104
104
|
"@types/lodash": "4.17.13",
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
106
|
-
"@typescript-eslint/parser": "8.
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
106
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
107
107
|
"depcheck": "1.4.7",
|
|
108
|
-
"eslint": "9.
|
|
108
|
+
"eslint": "9.16.0",
|
|
109
109
|
"eslint-config-prettier": "9.1.0",
|
|
110
110
|
"eslint-plugin-prettier": "5.2.1",
|
|
111
|
-
"@eslint/js": "9.
|
|
111
|
+
"@eslint/js": "9.16.0",
|
|
112
112
|
"@eslint/eslintrc": "3.2.0",
|
|
113
|
-
"husky": "9.1.
|
|
113
|
+
"husky": "9.1.7",
|
|
114
114
|
"jest": "29.7.0",
|
|
115
115
|
"jest-environment-testenv-recycler": "0.0.21",
|
|
116
116
|
"jest-mock-extended": "3.0.7",
|
|
117
|
-
"prettier": "3.
|
|
117
|
+
"prettier": "3.4.2",
|
|
118
118
|
"prettier-plugin-organize-imports": "4.1.0",
|
|
119
|
-
"lint-staged": "15.2.
|
|
119
|
+
"lint-staged": "15.2.11",
|
|
120
120
|
"ts-node": "10.9.2",
|
|
121
|
-
"typedoc": "0.
|
|
122
|
-
"typescript": "5.
|
|
121
|
+
"typedoc": "0.27.4",
|
|
122
|
+
"typescript": "5.7.2",
|
|
123
123
|
"semantic-release": "24.2.0",
|
|
124
124
|
"npm-check-updates": "17.1.11"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@aws-sdk/client-cloudformation": "3.
|
|
128
|
-
"@aws-sdk/client-cloudtrail": "3.
|
|
129
|
-
"@aws-sdk/client-organizations": "3.
|
|
130
|
-
"@aws-sdk/client-s3": "3.
|
|
131
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
132
|
-
"@aws-sdk/client-ssm": "3.
|
|
133
|
-
"@aws-sdk/client-sts": "3.
|
|
134
|
-
"@aws-sdk/credential-providers": "3.
|
|
127
|
+
"@aws-sdk/client-cloudformation": "3.709.0",
|
|
128
|
+
"@aws-sdk/client-cloudtrail": "3.710.0",
|
|
129
|
+
"@aws-sdk/client-organizations": "3.709.0",
|
|
130
|
+
"@aws-sdk/client-s3": "3.709.0",
|
|
131
|
+
"@aws-sdk/client-secrets-manager": "3.709.0",
|
|
132
|
+
"@aws-sdk/client-ssm": "3.709.0",
|
|
133
|
+
"@aws-sdk/client-sts": "3.709.0",
|
|
134
|
+
"@aws-sdk/credential-providers": "3.709.0",
|
|
135
135
|
"@smithy/middleware-retry": "2.3.1",
|
|
136
136
|
"@smithy/node-http-handler": "2.5.0",
|
|
137
|
-
"@aws-sdk/types": "3.
|
|
137
|
+
"@aws-sdk/types": "3.709.0",
|
|
138
138
|
"chalk": "5.3.0",
|
|
139
139
|
"cockatiel": "3.2.1",
|
|
140
140
|
"date-and-time": "3.6.0",
|
|
141
141
|
"diff": "7.0.0",
|
|
142
|
-
"dotenv": "16.4.
|
|
143
|
-
"dotenv-expand": "
|
|
142
|
+
"dotenv": "16.4.7",
|
|
143
|
+
"dotenv-expand": "12.0.1",
|
|
144
144
|
"easy-table": "1.2.0",
|
|
145
145
|
"folder-hash": "4.0.4",
|
|
146
146
|
"handlebars": "4.7.8",
|
|
147
|
-
"@inquirer/prompts": "7.
|
|
147
|
+
"@inquirer/prompts": "7.2.0",
|
|
148
148
|
"jmespath": "0.16.0",
|
|
149
149
|
"joi": "17.13.3",
|
|
150
150
|
"js-yaml": "4.1.0",
|