Skip to content

Commit

Permalink
Point to schematic staging (Replace) (#1291)
Browse files Browse the repository at this point in the history
Deployment of https://github.com/Sage-Bionetworks-IT/organizations-infra/pull/1290/files failed: https://github.com/Sage-Bionetworks-IT/organizations-infra/actions/runs/11919331993/job/33218806052

Due to:
```
 DEBG: Stack sagebase-schematic-stage-cname in account 797640923903 (us-east-1) update starting... (797640923903 = SageITAccount)
ERROR: error updating CloudFormation stack sagebase-schematic-stage-cname in account 797640923903 (us-east-1). 
Resource is not in the state stackUpdateComplete (797640923903 = SageITAccount)
ERROR: Resource DnsRecord failed because [Tried to create resource record set [name='schematic-staging.api.sagebionetworks.org.', type='CNAME'] but it already exists].
ERROR: Stack sagebase-schematic-stage-cname in account 797640923903 (us-east-1) update failed. reason: Resource is not in the state stackUpdateComplete (797640923903 = SageITAccount)
Resource is not in the state stackUpdateComplete
```

I suspect because we're replacing a DNS record with a new stack. Instead, this change should point to the existing stack to update it's values with the new ALB. It should also destroy the "stage" stack DNS forwarding config.
  • Loading branch information
BryanFauble authored Nov 19, 2024
1 parent 4b37bad commit 14419b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ SchematicDevAppDnsForward:

# forward schematic-staging.api.sagebionetworks.org to schematic-infra ALB
# https://github.com/Sage-Bionetworks-IT/schematic-infra-v2
SchematicStageAppDnsForward:
SchematicStagingAppDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-schematic-stage-cname'
StackName: !Sub '${resourcePrefix}-schematic-staging-cname'
StackDescription: Setup a CNAME for schematic-infra stage ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Expand Down

0 comments on commit 14419b9

Please sign in to comment.