carlin 0.20.0 → 0.20.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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.20.1](https://github.com/ttoss/carlin/compare/v0.20.0...v0.20.1) (2022-02-01)
7
+
8
+ ### Bug Fixes
9
+
10
+ - update actions iam ([4ff073f](https://github.com/ttoss/carlin/commit/4ff073f6067ca20994c9af892d0c4aa62c2c2b90))
11
+ - update actions iam ([b5dd158](https://github.com/ttoss/carlin/commit/b5dd158ec992720e33b1c98baff495962a9e3481))
12
+
6
13
  # [0.20.0](https://github.com/ttoss/carlin/compare/v0.19.17...v0.20.0) (2022-02-01)
7
14
 
8
15
  ### Bug Fixes
@@ -311,7 +311,8 @@ const getCicdTemplate = ({ pipelines = [], cpu = config_2.ECS_TASK_DEFAULT_CPU,
311
311
  ],
312
312
  },
313
313
  };
314
- resources[exports.REPOSITORY_IMAGE_CODE_BUILD_PROJECT_LOGICAL_ID] = exports.getRepositoryImageBuilder();
314
+ resources[exports.REPOSITORY_IMAGE_CODE_BUILD_PROJECT_LOGICAL_ID] =
315
+ exports.getRepositoryImageBuilder();
315
316
  })();
316
317
  const createApiResources = () => {
317
318
  resources[exports.API_LOGICAL_ID] = {
@@ -376,6 +377,11 @@ const getCicdTemplate = ({ pipelines = [], cpu = config_2.ECS_TASK_DEFAULT_CPU,
376
377
  },
377
378
  ],
378
379
  },
380
+ {
381
+ Effect: 'Allow',
382
+ Action: ['ecs:DescribeTasks'],
383
+ Resource: '*',
384
+ },
379
385
  {
380
386
  Effect: 'Allow',
381
387
  Action: ['ecs:RunTask'],
@@ -517,27 +523,28 @@ const getCicdTemplate = ({ pipelines = [], cpu = config_2.ECS_TASK_DEFAULT_CPU,
517
523
  /**
518
524
  * Used to start the container.
519
525
  */
520
- resources[exports.REPOSITORY_TASKS_ECS_TASK_DEFINITION_EXECUTION_ROLE_LOGICAL_ID] = {
521
- Type: 'AWS::IAM::Role',
522
- Properties: {
523
- AssumeRolePolicyDocument: {
524
- Version: '2012-10-17',
525
- Statement: [
526
- {
527
- Effect: 'Allow',
528
- Principal: {
529
- Service: 'ecs-tasks.amazonaws.com',
526
+ resources[exports.REPOSITORY_TASKS_ECS_TASK_DEFINITION_EXECUTION_ROLE_LOGICAL_ID] =
527
+ {
528
+ Type: 'AWS::IAM::Role',
529
+ Properties: {
530
+ AssumeRolePolicyDocument: {
531
+ Version: '2012-10-17',
532
+ Statement: [
533
+ {
534
+ Effect: 'Allow',
535
+ Principal: {
536
+ Service: 'ecs-tasks.amazonaws.com',
537
+ },
538
+ Action: 'sts:AssumeRole',
530
539
  },
531
- Action: 'sts:AssumeRole',
532
- },
540
+ ],
541
+ },
542
+ ManagedPolicyArns: [
543
+ 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy',
533
544
  ],
545
+ Path: utils_1.getIamPath(),
534
546
  },
535
- ManagedPolicyArns: [
536
- 'arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy',
537
- ],
538
- Path: utils_1.getIamPath(),
539
- },
540
- };
547
+ };
541
548
  /**
542
549
  * Used inside de container execution.
543
550
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {