示例#1
0
    def execute(self, context: 'Context'):
        self.log.info('CloudFormation Parameters: %s',
                      self.cloudformation_parameters)

        cloudformation_hook = CloudFormationHook(aws_conn_id=self.aws_conn_id)
        cloudformation_hook.delete_stack(self.stack_name,
                                         self.cloudformation_parameters)
示例#2
0
    def execute(self, context):
        self.log.info('Parameters: %s', self.params)

        cloudformation_hook = CloudFormationHook(aws_conn_id=self.aws_conn_id)
        cloudformation_hook.create_stack(self.stack_name, self.params)
示例#3
0
 def hook(self) -> CloudFormationHook:
     """Create and return a CloudFormationHook"""
     return CloudFormationHook(aws_conn_id=self.aws_conn_id,
                               region_name=self.region_name)