mirror of
https://github.com/inspec/inspec
synced 2024-12-26 04:53:24 +00:00
b3fafab1e6
* add aws_eks_cluster Signed-off-by: Timothy van Zadelhoff timothy.inspec@theothersolution.nl * disable ABC check on fetch_from_api Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * add status predicates * Change docs for status attribute Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * Add integration tests Signed-off-by: Timothy van Zadelhoff <timothy.inspec@theothersolution.nl> * Adjust EKS build code to almost work Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * EKS only uses private subnets - integration tests pass Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Correct AWS Exception class for resource search miss in unit test Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com> * Update unit test to reflect AWS resource-standard miss behavior, returning nil for most properties Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
26 lines
832 B
HCL
26 lines
832 B
HCL
# Contains resources and outputs related to testing the aws_rds_* resources.
|
|
|
|
#======================================================#
|
|
# RDS Instances
|
|
#======================================================#
|
|
|
|
|
|
resource "aws_db_instance" "default" {
|
|
allocated_storage = 20
|
|
storage_type = "gp2"
|
|
engine = "mysql"
|
|
engine_version = "5.6.37"
|
|
instance_class = "db.t2.micro"
|
|
identifier = "test-instance-id"
|
|
name = "test_instance"
|
|
username = "testuser"
|
|
password = "testpassword"
|
|
parameter_group_name = "default.mysql5.6"
|
|
skip_final_snapshot = true
|
|
depends_on = [ "aws_subnet.subnet_01" ]
|
|
}
|
|
|
|
output "rds_db_instance_id" {
|
|
description = "The RDS instance ID"
|
|
value = "${aws_db_instance.default.id}"
|
|
}
|