Skip to content

Commit b85da85

Browse files
committed
Needs more work
1 parent bb72e5a commit b85da85

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

immersion/environments/dev/immersion_stack.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,29 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
6363
access_token=f"{ROSHAN_GH_ACCESS_TOKEN}",
6464
repository="https://github.com/UMLCloudComputing/immersion"
6565
)
66+
67+
# Connect Git branch to Amplify
68+
amplify_branch = amplify.CfnBranch(
69+
self,
70+
f"{APP_NAME}AmplifyBranchMaster",
71+
app_id=amplify_app.attr_app_id,
72+
branch_name="master",
73+
enable_auto_build=True,
74+
)
75+
76+
# Connect app to domain
77+
amplify_cfn_domain = amplify.CfnDomain(
78+
self,
79+
"ImmersionAmplifyCfnDomain",
80+
app_id=amplify_app.attr_app_id,
81+
domain_name="umlcloudcomputing.org",
82+
sub_domain_settings=[amplify.CfnDomain.SubDomainSettingProperty(
83+
branch_name="master",
84+
prefix="immersion"
85+
)]
86+
)
87+
88+
amplify_cfn_domain.add_dependency(amplify_branch) # Make sure domain is created after branch is connected.
6689

6790
# DynamoDB Table Definitions
6891
serverTable = dynamodb.TableV2(

0 commit comments

Comments
 (0)