-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
launch role constraints, resource update constraints and associations…
… are now grouped by and managed by portfolio not by item
- Loading branch information
1 parent
418f1b2
commit f651ce9
Showing
9 changed files
with
154 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
servicecatalog_puppet/workflow/general/terminate_cloudformation_stack_task.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import luigi | ||
|
||
from servicecatalog_puppet import constants | ||
from servicecatalog_puppet.workflow.dependencies import tasks | ||
|
||
|
||
class TerminateCloudFormationStackTask(tasks.TaskWithReference): | ||
stack_name = luigi.Parameter() | ||
|
||
region = luigi.Parameter() | ||
account_id = luigi.Parameter() | ||
|
||
execution = luigi.Parameter() | ||
|
||
cachable_level = constants.CACHE_LEVEL_RUN | ||
|
||
def params_for_results_display(self): | ||
return { | ||
"puppet_account_id": self.puppet_account_id, | ||
"stack_name": self.stack_name, | ||
"account_id": self.account_id, | ||
"region": self.region, | ||
} | ||
|
||
def run(self): | ||
with self.spoke_regional_client("cloudformation") as cloudformation: | ||
cloudformation.ensure_deleted(StackName=self.stack_name) | ||
self.write_empty_output() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters