github.com/wata727/tflint@v0.12.2-0.20191013070026-96dd0d36f385/rules/awsrules/models/mappings/cloudhsmv2.hcl (about) 1 import = "aws-sdk-go/models/apis/cloudhsmv2/2017-04-28/api-2.json" 2 3 mapping "aws_cloudhsm_v2_cluster" { 4 source_backup_identifier = BackupId 5 hsm_type = HsmType 6 } 7 8 mapping "aws_cloudhsm_v2_hsm" { 9 cluster_id = ClusterId 10 subnet_id = SubnetId 11 availability_zone = ExternalAz 12 ip_address = IpAddress 13 } 14 15 test "aws_cloudhsm_v2_cluster" "source_backup_identifier" { 16 ok = "backup-rtq2dwi2gq6" 17 ng = "rtq2dwi2gq6" 18 } 19 20 test "aws_cloudhsm_v2_cluster" "hsm_type" { 21 ok = "hsm1.medium" 22 ng = "hsm1.micro" 23 } 24 25 test "aws_cloudhsm_v2_hsm" "cluster_id" { 26 ok = "cluster-jxhlf7644ne" 27 ng = "jxhlf7644ne" 28 } 29 30 test "aws_cloudhsm_v2_hsm" "subnet_id" { 31 ok = "subnet-0e358c43" 32 ng = "0e358c43" 33 } 34 35 test "aws_cloudhsm_v2_hsm" "availability_zone" { 36 ok = "us-east-1a" 37 ng = "us-east-1" 38 } 39 40 test "aws_cloudhsm_v2_hsm" "ip_address" { 41 ok = "8.8.8.8" 42 ng = "2001:4860:4860::8888" 43 }