Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix app zipfile for test CDN app #782

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Fix app zipfile for test CDN app #782

merged 3 commits into from
Nov 15, 2023

Conversation

markdboyd
Copy link
Contributor

@markdboyd markdboyd commented Nov 15, 2023

Related to https://github.com/cloud-gov/private/issues/888

Changes proposed in this pull request:

After #779, #780, and #781, the test CDN deployed correctly in staging, but visiting the URL gives a 403 error: https://test-cdn.fr-stage.cloud.gov/

The cause of the issue is that the source code for the app wasn't being zipped properly by the zipper provider. So Instead, I'm updating the code to the clone the source code manually and create the zip file using the archive_file resource built-in to Terraform.

security considerations

None. These changes will fix deployment a "hello world" app which has no value except for allowing uptime monitoring of apps using a CDN.

@markdboyd markdboyd requested a review from a team November 15, 2023 15:53
@markdboyd markdboyd merged commit 23d8524 into main Nov 15, 2023
1 check passed
@markdboyd markdboyd deleted the fix-app-zipfile branch November 15, 2023 15:55
Copy link
Contributor

@jameshochadel jameshochadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about null_resource, local-exec, and archive_file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants