@devramps/cli 0.1.27 → 0.1.29
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/index.js +32 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2534,6 +2534,22 @@ function generateStageStackTemplate(options) {
|
|
|
2534
2534
|
{ Key: "ArtifactType", Value: artifact.type }
|
|
2535
2535
|
]
|
|
2536
2536
|
);
|
|
2537
|
+
template.Resources[resourceId].Properties.RepositoryPolicyText = {
|
|
2538
|
+
Version: "2012-10-17",
|
|
2539
|
+
Statement: [
|
|
2540
|
+
{
|
|
2541
|
+
Sid: "AllowLambdaPull",
|
|
2542
|
+
Effect: "Allow",
|
|
2543
|
+
Principal: {
|
|
2544
|
+
Service: "lambda.amazonaws.com"
|
|
2545
|
+
},
|
|
2546
|
+
Action: [
|
|
2547
|
+
"ecr:GetDownloadUrlForLayer",
|
|
2548
|
+
"ecr:BatchGetImage"
|
|
2549
|
+
]
|
|
2550
|
+
}
|
|
2551
|
+
]
|
|
2552
|
+
};
|
|
2537
2553
|
ecrOutputs[artifact.name] = { resourceId };
|
|
2538
2554
|
}
|
|
2539
2555
|
for (const artifact of bundleArtifacts) {
|
|
@@ -2618,6 +2634,22 @@ function buildStagePolicies(steps, additionalPolicies, dockerArtifacts, bundleAr
|
|
|
2618
2634
|
]
|
|
2619
2635
|
}
|
|
2620
2636
|
});
|
|
2637
|
+
policies.push({
|
|
2638
|
+
PolicyName: "DevRampsEventBridgePolicy",
|
|
2639
|
+
PolicyDocument: {
|
|
2640
|
+
Version: "2012-10-17",
|
|
2641
|
+
Statement: [
|
|
2642
|
+
{
|
|
2643
|
+
Sid: "AllowEventBridgePutEvents",
|
|
2644
|
+
Effect: "Allow",
|
|
2645
|
+
Action: [
|
|
2646
|
+
"events:PutEvents"
|
|
2647
|
+
],
|
|
2648
|
+
Resource: "*"
|
|
2649
|
+
}
|
|
2650
|
+
]
|
|
2651
|
+
}
|
|
2652
|
+
});
|
|
2621
2653
|
const tfStateBucketName = generateTerraformStateBucketName(orgSlug);
|
|
2622
2654
|
policies.push({
|
|
2623
2655
|
PolicyName: "DevRampsTerraformStatePolicy",
|