This is half-automated, half do-nothing set of scripts to assist in uploading a single linux platform provider to a private registry in Terraform Cloud.
-
A pgp signing key which is used to sign the provider you want to register. You can generate a signing key using these instructions. The public key should be exported in ASCII-armor format.
-
The linux/amd64 provider binary, SHA256SUMS, and SHA256SUMS.sig files. These are usually generated by goreleaser. I find it easy to generate these on Github Actions using the scaffolding workflow configured with the exported secret key from prerequisite 1.
Visit each directory in order and perform the following instructions.
Copy your exported public signing key to 01-gpg-key/my_key.pgp
and terraform init
/ terraform apply
to create the key on the private registry.
Now would be a good time to edit config_example
and copy to .secret_config
. Make sure you also copy the Key ID terraform output into KEY_ID.
$ cp config_example .secret_config
Run ./script.sh
and follow the instructions
Run ./script.sh
and follow the instructions
Run ./script.sh
and follow the instructions
Run ./script.sh <SHA256SUM>
and follow the instructions