second first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Minimal VPC + Subnet + Security Group to verify
|
||||
# terraform destroy succeeds after DescribeNetworkInterfaces fix.
|
||||
# Previously https://github.com/floci-io/floci/issues/1031
|
||||
|
||||
resource "aws_vpc" "test" {
|
||||
cidr_block = "10.0.0.0/16"
|
||||
|
||||
tags = {
|
||||
Name = "floci-eni-destroy-vpc"
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_subnet" "test" {
|
||||
vpc_id = aws_vpc.test.id
|
||||
cidr_block = "10.0.1.0/24"
|
||||
|
||||
tags = {
|
||||
Name = "floci-eni-destroy-subnet"
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_security_group" "test" {
|
||||
name = "floci-eni-destroy-sg"
|
||||
description = "ENI destroy test SG"
|
||||
vpc_id = aws_vpc.test.id
|
||||
|
||||
tags = {
|
||||
Name = "floci-eni-destroy-sg"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
aws = {
|
||||
source = "hashicorp/aws"
|
||||
version = "~> 6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
variable "endpoint" {
|
||||
type = string
|
||||
default = "http://localhost:4566"
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
region = "us-east-1"
|
||||
access_key = "test"
|
||||
secret_key = "test"
|
||||
|
||||
skip_credentials_validation = true
|
||||
skip_metadata_api_check = true
|
||||
skip_requesting_account_id = true
|
||||
s3_use_path_style = true
|
||||
|
||||
endpoints {
|
||||
ec2 = var.endpoint
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user