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

Factor out a simple OpenStack VM module #42

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

strugee
Copy link
Member

@strugee strugee commented Mar 13, 2024

No description provided.

@strugee strugee force-pushed the aj/simple-vm-module branch from acdc3da to 29f0419 Compare March 13, 2024 03:04
Copy link

Terraform Format and Style 🖌``

Terraform Initialization ⚙️success

Terraform Plan 📖success

Terraform Validation 🤖success

Show Plan

terraform
module.mailu-vm.openstack_networking_secgroup_v2.main-sg: Refreshing state... [id=d422a797-f933-4a88-9daa-ad3bf51fd524]
openstack_networking_secgroup_v2.nc-office: Refreshing state... [id=4d84c1c5-484b-45a1-a23f-b32d367f41b4]
module.prod_db.random_password.osem_db_master_pass: Refreshing state... [id=none]
aws_ses_email_identity.email: Refreshing state... [[email protected]]
aws_route53_record.mailu-test-dkim: Refreshing state... [id=Z0173878287JIU5M4KB8R_dkim._domainkey.mail-test.seagl.org_TXT]
module.prod_db.aws_db_subnet_group.osem: Refreshing state... [id=osem]
aws_route53_record.mailu-test-dmarc: Refreshing state... [id=Z0173878287JIU5M4KB8R__dmarc.mail-test.seagl.org_TXT]
aws_route53_record.mailu-test-autoconfig-srv["_submissions._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__submissions._tcp.mail-test.seagl.org_SRV]
aws_instance.dokku: Refreshing state... [id=i-02ee81d4bd0860d30]
aws_route53_record.mailu-test-autoconfig-srv["_pop3._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__pop3._tcp.mail-test.seagl.org_SRV]
aws_route53_record.mailu-test-autoconfig-srv["_submission._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__submission._tcp.mail-test.seagl.org_SRV]
aws_route53_record.mailu-test-autoconfig-srv["_pop3s._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__pop3s._tcp.mail-test.seagl.org_SRV]
aws_route53_record.mailu-test-autoconfig-srv["_autodiscover._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__autodiscover._tcp.mail-test.seagl.org_SRV]
aws_route53_record.mailu-test-autoconfig-srv["_imap._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__imap._tcp.mail-test.seagl.org_SRV]
aws_route53_record.mailu-test-autoconfig-srv["_imaps._tcp"]: Refreshing state... [id=Z0173878287JIU5M4KB8R__imaps._tcp.mail-test.seagl.org_SRV]
module.prod_db.aws_secretsmanager_secret.osem-db-pass: Refreshing state... [id=arn:aws:secretsmanager:us-west-2:663166083306:secret:db-pass-osem-5KW1mS]
aws_route53_record.mailu-test-spf: Refreshing state... [id=Z0173878287JIU5M4KB8R_mail-test.seagl.org_TXT]
aws_route53_record.route_53_cloud_txt: Refreshing state... [id=Z0173878287JIU5M4KB8R_cloud.seagl.org_TXT]
aws_ses_domain_identity.seagl: Refreshing state... [id=seagl.org]
aws_route53_record.email_dkim_hubspot_records["hs2-40081384"]: Refreshing state... [id=Z0173878287JIU5M4KB8R_hs2-40081384._domainkey.seagl.org_CNAME]
aws_route53_record.email_dkim_hubspot_records["hs1-40081384"]: Refreshing state... [id=Z0173878287JIU5M4KB8R_hs1-40081384._domainkey.seagl.org_CNAME]
aws_route53_record.alias: Refreshing state... [id=Z0173878287JIU5M4KB8R_alias.seagl.org_CNAME]
aws_route53_record.cloud-a: Refreshing state... [id=Z0173878287JIU5M4KB8R_cloud.seagl.org_A]
aws_route53_record.route_53_dmarc_txt: Refreshing state... [id=Z0173878287JIU5M4KB8R__dmarc.seagl.org_TXT]
aws_route53_record.cloud-aaaa: Refreshing state... [id=Z0173878287JIU5M4KB8R_cloud.seagl.org_AAAA]
aws_route53_record.mailu-test-mx: Refreshing state... [id=Z0173878287JIU5M4KB8R_mail-test.seagl.org_MX]
aws_route53_record.pretalx: Refreshing state... [id=Z0173878287JIU5M4KB8R_pretalx.seagl.org_CNAME]
aws_route53_record.route_53_root_txt: Refreshing state... [id=Z0173878287JIU5M4KB8R__TXT]
aws_s3_bucket.state: Refreshing state... [id=seagl-terraform]
aws_route53_record.mailu-test-autoconfig-cname: Refreshing state... [id=Z0173878287JIU5M4KB8R_autoconfig.mail-test.seagl.org_CNAME]
aws_route53_record.mailu-test-a: Refreshing state... [id=Z0173878287JIU5M4KB8R_mail.mail-test.seagl.org_A]
aws_ses_domain_identity.email_domain_identity: Refreshing state... [id=seagl.org]
data.aws_vpc.vpc: Reading...
module.mailu-vm.openstack_networking_secgroup_rule_v2.ipv4-egress: Refreshing state... [id=880f7c96-02a4-41d9-aa0c-85236175a91b]
module.mailu-vm.openstack_networking_secgroup_rule_v2.ipv6-egress: Refreshing state... [id=094e8ef1-4f00-4dc4-a7b0-9ad5bf09a8e0]
module.mailu-vm.openstack_networking_secgroup_rule_v2.icmp4-ingress: Refreshing state... [id=f7332d33-9702-4b7b-af9f-e66deb8ce0af]
module.mailu-vm.openstack_compute_instance_v2.instance: Refreshing state... [id=43089f30-2cc0-43e9-93c0-c2deab336560]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["443"]: Refreshing state... [id=bb495a69-4c90-431a-a634-7b5459315a65]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["993"]: Refreshing state... [id=76d6ca04-3aad-466c-8b75-f75c063ca097]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["80"]: Refreshing state... [id=aff5f8e3-6d72-4378-b80c-46948b157d06]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["143"]: Refreshing state... [id=b21d57e8-8f50-41d3-bb7f-42456c2e1d60]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["25"]: Refreshing state... [id=1c044046-80b4-4482-8345-92537c3220ac]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["465"]: Refreshing state... [id=39e2ac5c-2040-4c2b-9ad5-22c424b0abcb]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["587"]: Refreshing state... [id=3d0856f0-b464-4690-970a-2d6d87ca75b9]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["22"]: Refreshing state... [id=ee1d0145-522d-4bb2-8ba2-e4241c103678]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["995"]: Refreshing state... [id=db876dde-1e0b-47fa-8960-6c82e495acf3]
module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["110"]: Refreshing state... [id=0d3c863b-8f4e-4db8-96a2-0714951e3719]
openstack_compute_instance_v2.nc-office: Refreshing state... [id=321fae7f-cbe4-4237-a44e-49c748d82dba]
openstack_networking_secgroup_rule_v2.nc-office-icmp4-ingress: Refreshing state... [id=2373bb0c-08d7-4d05-9101-8194e7a86b50]
openstack_networking_secgroup_rule_v2.nc-office-ipv4-egress: Refreshing state... [id=b4c16127-ae56-48c8-aa65-ca37c49c9c79]
openstack_networking_secgroup_rule_v2.nc-office-ipv6-egress: Refreshing state... [id=cb85269b-39fc-4169-8fd2-ba7e360b16e5]
openstack_networking_secgroup_rule_v2.nc-office-tcp4-ingress["22"]: Refreshing state... [id=b88334fc-505c-4849-824c-11f03eb59e75]
openstack_networking_secgroup_rule_v2.nc-office-tcp4-ingress["80"]: Refreshing state... [id=5b266c7d-c72b-4395-a8fe-43ed8df1aa6f]
openstack_networking_secgroup_rule_v2.nc-office-tcp4-ingress["443"]: Refreshing state... [id=f9de80b9-a92e-4629-96a6-4a896cbf9f9e]
module.prod_db.aws_secretsmanager_secret_version.osem-db-pass-val: Refreshing state... [id=arn:aws:secretsmanager:us-west-2:663166083306:secret:db-pass-osem-5KW1mS|5E8ED816-E9AA-4E8E-A382-2EEE9FC74A66]
aws_ses_domain_dkim.email_dkim: Refreshing state... [id=seagl.org]
data.aws_vpc.vpc: Read complete after 0s [id=vpc-231ecb46]
module.prod_db.aws_security_group.osem_rds_security_group: Refreshing state... [id=sg-006c493d98f3c7f1a]
aws_route53_record.email_dkim_records[2]: Refreshing state... [id=Z0173878287JIU5M4KB8R_o7o3tsrrlwgkmmx3a7f5njkrvi75woso._domainkey.seagl.org_CNAME]
aws_route53_record.email_dkim_records[1]: Refreshing state... [id=Z0173878287JIU5M4KB8R_zjerfwsrr5wpwp5p5klnsrrzp6ralpcp._domainkey.seagl.org_CNAME]
aws_route53_record.email_dkim_records[0]: Refreshing state... [id=Z0173878287JIU5M4KB8R_nldzqxeyq5fyslu3tzvj4ltbwbexupuj._domainkey.seagl.org_CNAME]
module.prod_db.aws_security_group_rule.private_out: Refreshing state... [id=sgrule-1612436969]
module.prod_db.aws_security_group_rule.private_in: Refreshing state... [id=sgrule-3182957500]
module.prod_db.aws_db_instance.osem: Refreshing state... [id=osem]
aws_s3_bucket_public_access_block.state: Refreshing state... [id=seagl-terraform]
aws_s3_bucket_versioning.state: Refreshing state... [id=seagl-terraform]

Terraform will perform the following actions:

  # openstack_compute_instance_v2.mailu has moved to module.mailu-vm.openstack_compute_instance_v2.instance
    resource "openstack_compute_instance_v2" "instance" {
        id                  = "43089f30-2cc0-43e9-93c0-c2deab336560"
        name                = "mailu"
        tags                = []
        # (15 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-icmp4-ingress has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.icmp4-ingress
    resource "openstack_networking_secgroup_rule_v2" "icmp4-ingress" {
        id                = "f7332d33-9702-4b7b-af9f-e66deb8ce0af"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-ipv4-egress has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.ipv4-egress
    resource "openstack_networking_secgroup_rule_v2" "ipv4-egress" {
        id                = "880f7c96-02a4-41d9-aa0c-85236175a91b"
        # (7 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-ipv6-egress has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.ipv6-egress
    resource "openstack_networking_secgroup_rule_v2" "ipv6-egress" {
        id                = "094e8ef1-4f00-4dc4-a7b0-9ad5bf09a8e0"
        # (7 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["110"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["110"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "0d3c863b-8f4e-4db8-96a2-0714951e3719"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["143"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["143"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "b21d57e8-8f50-41d3-bb7f-42456c2e1d60"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["22"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["22"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "ee1d0145-522d-4bb2-8ba2-e4241c103678"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["25"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["25"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "1c044046-80b4-4482-8345-92537c3220ac"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["443"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["443"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "bb495a69-4c90-431a-a634-7b5459315a65"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["465"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["465"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "39e2ac5c-2040-4c2b-9ad5-22c424b0abcb"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["587"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["587"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "3d0856f0-b464-4690-970a-2d6d87ca75b9"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["80"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["80"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "aff5f8e3-6d72-4378-b80c-46948b157d06"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["993"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["993"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "76d6ca04-3aad-466c-8b75-f75c063ca097"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_rule_v2.mailu-tcp4-ingress["995"] has moved to module.mailu-vm.openstack_networking_secgroup_rule_v2.tcp4-ingress["995"]
    resource "openstack_networking_secgroup_rule_v2" "tcp4-ingress" {
        id                = "db876dde-1e0b-47fa-8960-6c82e495acf3"
        # (9 unchanged attributes hidden)
    }

  # openstack_networking_secgroup_v2.mailu has moved to module.mailu-vm.openstack_networking_secgroup_v2.main-sg
    resource "openstack_networking_secgroup_v2" "main-sg" {
        id        = "d422a797-f933-4a88-9daa-ad3bf51fd524"
        name      = "mailu"
        tags      = []
        # (3 unchanged attributes hidden)
    }

Plan: 0 to add, 0 to change, 0 to destroy.

Warning: Argument is deprecated

  with aws_s3_bucket.state,
  on s3.tf line 1, in resource "aws_s3_bucket" "state":
   1: resource "aws_s3_bucket" "state" {

Use the aws_s3_bucket_versioning resource instead

(and 3 more similar warnings elsewhere)

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pushed by: @strugee, Action: pull_request

@strugee strugee merged commit 29f0419 into main Mar 13, 2024
1 check passed
@strugee strugee deleted the aj/simple-vm-module branch March 13, 2024 03:05
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