Feat: Adds base project
This commit is contained in:
31
infra/ecs_alb/conf.py
Normal file
31
infra/ecs_alb/conf.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import pulumi
|
||||
import pulumi_aws as aws
|
||||
from autotag.autotag import register_auto_tags
|
||||
|
||||
config = pulumi.Config()
|
||||
|
||||
pulumi_project = pulumi.get_project()
|
||||
|
||||
project_name = config.require("project_name")
|
||||
stack_name = pulumi.get_stack()
|
||||
aws_region = aws.get_region().id
|
||||
|
||||
|
||||
current = aws.get_caller_identity()
|
||||
|
||||
current = aws.get_caller_identity_output()
|
||||
account_id1 = current.account_id
|
||||
|
||||
account_id = config.require("account_id")
|
||||
|
||||
network = config.get_object("network")
|
||||
ecs = config.get_object("ecs")
|
||||
ecr = config.get_object("ecr")
|
||||
environment = config.require("environment")
|
||||
|
||||
register_auto_tags(config.get_object('tags'))
|
||||
|
||||
def get(x):
|
||||
return config.get(x)
|
||||
def get_bool(x):
|
||||
return config.get_bool(x)
|
||||
Reference in New Issue
Block a user