-
-
Save ohlol/4ea2781c027c236315be3b2e49fe5a8c to your computer and use it in GitHub Desktop.
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
import pulumi | |
from hatch.pulumi.aws import dynamodb | |
from provision.cloudtrail import provision_cloudtrail | |
from provision.datadog import provision_datadog | |
from provision.iam import provision_packer_role, provision_users_groups | |
from provision.route53 import provision_route53 | |
stack_config = pulumi.Config() | |
account_config = stack_config.require_object("config") | |
stack_name = account_config.get("name") | |
# there's more, but it errors within this | |
cloudtrail_bucket = provision_cloudtrail(stack_name=stack_name) |
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
def provision_cloudtrail(stack_name): | |
account_id = get_caller_identity().account_id # <-- here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment