sst 2.0.0-rc.30 → 2.0.0-rc.32
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/cli/commands/bind.js +1 -1
- package/constructs/Stack.js +2 -2
- package/package.json +1 -1
- package/sst.mjs +2 -2
package/cli/commands/bind.js
CHANGED
|
@@ -15,12 +15,12 @@ export const bind = (program) => program.command("bind <command>", "Bind your ap
|
|
|
15
15
|
const credentials = await useAWSCredentials();
|
|
16
16
|
const result = spawnSync(args.command, {
|
|
17
17
|
env: {
|
|
18
|
+
...process.env,
|
|
18
19
|
...env,
|
|
19
20
|
AWS_ACCESS_KEY_ID: credentials.accessKeyId,
|
|
20
21
|
AWS_SECRET_ACCESS_KEY: credentials.secretAccessKey,
|
|
21
22
|
AWS_SESSION_TOKEN: credentials.sessionToken,
|
|
22
23
|
AWS_REGION: project.config.region,
|
|
23
|
-
PATH: process.env.PATH,
|
|
24
24
|
},
|
|
25
25
|
stdio: "inherit",
|
|
26
26
|
shell: process.env.SHELL || true,
|
package/constructs/Stack.js
CHANGED
|
@@ -209,8 +209,8 @@ export class Stack extends cdk.Stack {
|
|
|
209
209
|
this.customResourceHandler.addToRolePolicy(new iam.PolicyStatement({
|
|
210
210
|
actions: ["ssm:GetParametersByPath", "ssm:PutParameter", "sns:Publish"],
|
|
211
211
|
resources: [
|
|
212
|
-
`arn:${this.partition}
|
|
213
|
-
`arn:${this.partition}
|
|
212
|
+
`arn:${this.partition}:ssm:${app.region}:${app.account}:parameter/sst/${app.name}/${app.stage}/*`,
|
|
213
|
+
`arn:${this.partition}:ssm:${app.region}:${app.account}:parameter/sst/${app.name}/.fallback/*`,
|
|
214
214
|
],
|
|
215
215
|
}));
|
|
216
216
|
new cdk.CustomResource(this, "SecretsMigration", {
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -5716,12 +5716,12 @@ var bind = (program2) => program2.command(
|
|
|
5716
5716
|
const credentials = await useAWSCredentials2();
|
|
5717
5717
|
const result = spawnSync(args.command, {
|
|
5718
5718
|
env: {
|
|
5719
|
+
...process.env,
|
|
5719
5720
|
...env2,
|
|
5720
5721
|
AWS_ACCESS_KEY_ID: credentials.accessKeyId,
|
|
5721
5722
|
AWS_SECRET_ACCESS_KEY: credentials.secretAccessKey,
|
|
5722
5723
|
AWS_SESSION_TOKEN: credentials.sessionToken,
|
|
5723
|
-
AWS_REGION: project.config.region
|
|
5724
|
-
PATH: process.env.PATH
|
|
5724
|
+
AWS_REGION: project.config.region
|
|
5725
5725
|
},
|
|
5726
5726
|
stdio: "inherit",
|
|
5727
5727
|
shell: process.env.SHELL || true
|