snapcrafters / terraform

Unofficial snap package for Hashicorp Terraform
https://snapcraft.io/terraform
Mozilla Public License 2.0
1 stars 3 forks source link

WIP confined snap #19

Closed jnsgruk closed 2 years ago

jnsgruk commented 2 years ago

Working to move from 'classic' to 'strict' confinement

QA Steps

This assumes you have a Kubernetes cluster configured, and the creds are in ~/.kube/config.

sudo snap remove --purge terraform

rm -rf test/.terraform
rm -rf test/.terraform.lock.hcl
rm -rf test/terraform.tfstate

snapcraft --use-lxd
sudo snap install --dangerous ./terraform_1.1.9_amd64.snap

sudo snap connect terraform:dot-terraform-d
sudo snap connect terraform:dot-terraformrc
sudo snap connect terraform:kube-credentials

cd test
terraform init
terraform apply -auto-approve