Skip to main content

Terraform resource scripts

1. Instance

  • Script to create an instance:

    Instance creation script

  • Result after successful instance creation:

    Instance created successfully

  • Destroy the created instance:

    Instance destroy command

2. Floating IP

  • Script to create a floating IP:

    Floating IP creation script

  • Result after successful floating IP creation:

    Floating IP created successfully

  • Destroy the created floating IP:

    Floating IP destroy command

3. Security group

  • Script to create a security group:

    Security group creation script

  • Result after successful security group creation:

    Security group created successfully

  • Destroy the created security group:

    Security group destroy command

4. Storage disk

  • Script to create a storage disk:

    Storage disk creation script

  • Result after successful storage disk creation:

    Storage disk created successfully

  • Destroy the created storage disk:

    Storage disk destroy command