CI-CD debugging, opentofu/setup-tofu action, tofu state pull, jq, new tofu-plan repo with barebones resources in root module
Some checks failed
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 37s
Some checks failed
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 37s
This commit is contained in:
parent
5bde621e20
commit
19ca0a3b70
@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: tofu Checkout
|
- name: tofu Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: 'seasharp/eqit_tofu-plan'
|
repository: 'seasharp/eqit_tofu-import'
|
||||||
ref: 'refs/heads/main'
|
ref: 'refs/heads/main'
|
||||||
path: 'tofu'
|
path: 'tofu'
|
||||||
ssh-key: |-
|
ssh-key: |-
|
||||||
@ -45,8 +45,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd tofu
|
cd tofu
|
||||||
tofu init
|
tofu init
|
||||||
tofu import module.main_vpc_subnet.linode_vpc.eqit_vpc ${{ env.EQIT_VPC }}
|
tofu import linode_vpc.eqit_vpc ${{ env.EQIT_VPC }}
|
||||||
tofu import module.main_vpc_subnet.linode_vpc_subnet.eqit_vpc_subnet "${{ env.EQIT_VPC }}, ${{ env.EQIT_VPC_SUBNET }}"
|
tofu import linode_vpc_subnet.eqit_vpc_subnet "${{ env.EQIT_VPC }}, ${{ env.EQIT_VPC_SUBNET }}"
|
||||||
- id: plan
|
- id: plan
|
||||||
run: "cd tofu; for id in $(tofu state pull | jq '.resources[1].instances[0].attributes.linodes[].id'); do tofu import linode_instance.eqit_instance $id;done"
|
run: "cd tofu; for id in $(tofu state pull | jq '.resources[1].instances[0].attributes.linodes[].id'); do tofu import linode_instance.eqit_instance $id;done"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user