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

Convert legacy Packer json template to hcl2 template #247

Merged
merged 10 commits into from
Sep 19, 2023

Conversation

lonegunmanb
Copy link
Member

@lonegunmanb lonegunmanb commented Sep 18, 2023

WARNING!

To merag this pr, the corresponding document also must be updated, or document's CI pipeline would be broke.

We also need to update the document. In the current document we hard coded the credential in packer's config file (though this credential is fake), this practice might be misunderstood as a recommended way to set the credential, which is not.

We'd better modify the document by using Packer var file to set the credential and warn our reader not to commit this var file into VCS. Why a var file is better than the command line flag or environment variables for our reader? Because setting a var file would not leave traceable logs in our reader's shell history.

This example includes a Packer config file so the reader could build a virtual machine image that used by the Terraform code. This pr added a testing harness setup step so we can build the vm image in our e2e test, then apply the example code.

@TomArcherMsft @grayzu WDYT?

@lonegunmanb lonegunmanb temporarily deployed to acctests September 19, 2023 01:31 — with GitHub Actions Inactive
@lonegunmanb lonegunmanb temporarily deployed to acctests September 19, 2023 03:15 — with GitHub Actions Inactive
@lonegunmanb lonegunmanb temporarily deployed to acctests September 19, 2023 05:20 — with GitHub Actions Inactive
@lonegunmanb lonegunmanb merged commit f2a6901 into Azure:master Sep 19, 2023
3 checks passed
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.

1 participant