Commit Graph

197 Commits

Author SHA1 Message Date
Olivier Ramonat
f04430be6c Minor update to get rid of python2 style code
Do not subclass "object" and use python3 super()
2021-03-09 11:39:00 +01:00
Nicolas Roche
204374a719 Merge pull request #81 from Nikokrock/add_cfn_policy_doc_method
Add various improvements to stacks:
2021-03-05 17:05:19 +01:00
Nicolas Roche
2be5765544 Add various improvements to stacks:
* Add new cfn_policy_document method on resources to allow a resource
  to describe the minimal policy required to deploy/manage the resource
  with CloudFormation.
* Add create_data_dir method on resources that allows a construct to
  put files that will be automatically pushed into a S3 bucket
  accessible during the stack deployment.
* Transform resources into a method that will receive the bucket and
  prefix in which resources can be pushed.
2021-03-04 17:31:04 +01:00
Nicolas Roche
bc78101035 Merge pull request #82 from pierretr/master
Add missing troposphere stack description export
2021-03-04 15:59:24 +01:00
Pierre Trespeuch
ba865ce1c4 Add missing troposphere stack description export
Stack description was not exported in the CloudFormation template.
2021-03-02 18:32:34 +01:00
Pierre Trespeuch
b5e480737e Merge pull request #80 from Nikokrock/bad_call
Revert change in arguments order in Stack initialization
2021-02-11 17:46:51 +01:00
Nicolas Roche
468d35a03f Revert change in arguments order in Stack initialization 2021-02-11 16:52:44 +01:00
Nicolas Roche
5820aeed21 Use right black version 2021-02-11 16:52:44 +01:00
Nicolas Roche
21d413f9f9 Merge pull request #79 from Nikokrock/improve_cfn_api
Improve stack handling
2021-02-11 15:40:17 +01:00
Nicolas Roche
eaaa145d10 Improve stack handling
* Add API support to query stack events
* Display events during stack creation, update and deletion
* Move wait operation into Stack
* Add support for dynamic data_dirs in CFNMain
* Add support for stack deletion in CFNMain
2021-02-11 11:34:55 +01:00
Nicolas Roche
2af2d817e8 Merge pull request #78 from Nikokrock/move_stack_definition
Move e3.aws.Stack definition to e3.aws.troposphere.Stack
2021-01-22 11:20:20 +01:00
Nicolas Roche
18657801c4 Move e3.aws.Stack definition to e3.aws.troposphere.Stack
This avoid dependency on e3.aws.cfn in e3.aws module
2021-01-21 17:41:19 +01:00
Nicolas Roche
7c7d7cbaf5 Merge pull request #73 from pierretr/master
Define resources to run Fargate scheduled tasks
2021-01-21 16:22:10 +01:00
Pierre Trespeuch
e9a53787d0 Define resources to run Fargate scheduled tasks
Add resources from AWS Elastic Container, Elastic Container Registry
and EventBrigde services that are needed to run Fargate scheduled tasks.

Part of TB06-027
2021-01-21 15:06:25 +01:00
Nicolas Roche
d843f3fb1e Merge pull request #75 from Nikokrock/add_cfn_role
Add ability to pass a role assumed by Cloud Formation.
2021-01-21 10:46:20 +01:00
Nicolas Roche
5dc2928bd4 Merge branch 'master' into add_cfn_role 2021-01-21 09:53:56 +01:00
Nicolas Roche
f9da16c7c1 Merge pull request #77 from pierretr/role
Add missing fields to iam Role construct
2021-01-21 09:52:27 +01:00
Pierre Trespeuch
fef084e242 Add missing fields to iam Role construct
Add MaxSessionDuration and Tags fields.
2021-01-21 09:23:30 +01:00
Nicolas Roche
a8ce85f80f Merge pull request #76 from Nikokrock/remove_useless_s3_parameter
Remove ACL_Control setting from S3 Bucket.
2021-01-21 09:06:31 +01:00
Nicolas Roche
0499600283 Add ability to pass a role assumed by Cloud Formation.
This mainly allows to separate rights for users and rights for Cloud
Formation itself.
2021-01-20 08:30:10 +01:00
Nicolas Roche
b970905f5d Remove ACL_Control setting from S3 Bucket.
ACL are not needed. Policy document provides finer control on
permissions.
2021-01-20 08:23:12 +01:00
Nicolas Roche
ece2d7df1d Merge pull request #74 from pierretr/cli_cmd
Add a method to execute cli command from a session
2021-01-15 16:44:06 +01:00
Pierre Trespeuch
541ad0f0bc Add session method to run command with given role
This method makes it easier to run commands that need aws credentials.
One common use case is to call it with aws CLI commands.

Part of TC02-011
2021-01-15 15:52:33 +01:00
Pierre Trespeuch
51958007bc Merge pull request #69 from pierretr/master
Consider empty change as warning instead of error
2021-01-07 16:38:33 +01:00
Pierre Trespeuch
b4ca5e1141 Consider empty change as warning instead of error
This allow pushing changesets for multiple stacks even if some do not
get updated.
2021-01-04 10:53:16 +01:00