Skip to content

Commit b217c0f

Browse files
authored
Merge pull request #1467 from snyk/feat/aws_elasticache_cluster
Add aws_elasticache_cluster resource
2 parents 8304f21 + 4c81f8c commit b217c0f

19 files changed

+178094
-0
lines changed

pkg/iac/terraform/state/terraform_state_reader_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func TestTerraformStateReader_AWS_Resources(t *testing.T) {
197197
{name: "EBS encryption by default", dirName: "aws_ebs_encryption_by_default", wantErr: false},
198198
{name: "LoadBalancer", dirName: "aws_lb", wantErr: false},
199199
{name: "Classic load balancer", dirName: "aws_elb", wantErr: false},
200+
{name: "ElastiCache Cluster", dirName: "aws_elasticache_cluster", wantErr: false},
200201
}
201202
for _, tt := range tests {
202203
t.Run(tt.name, func(t *testing.T) {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[
2+
{
3+
"Id": "cluster-example",
4+
"Type": "aws_elasticache_cluster",
5+
"Attrs": {
6+
"arn": "arn:aws:elasticache:us-east-2:047081014315:cluster:cluster-example",
7+
"availability_zone": "us-east-2b",
8+
"az_mode": "single-az",
9+
"cache_nodes": [
10+
{
11+
"address": "cluster-example.jkdpui.0001.use2.cache.amazonaws.com",
12+
"availability_zone": "us-east-2b",
13+
"id": "0001",
14+
"port": 11211
15+
}
16+
],
17+
"cluster_address": "cluster-example.jkdpui.cfg.use2.cache.amazonaws.com",
18+
"cluster_id": "cluster-example",
19+
"configuration_endpoint": "cluster-example.jkdpui.cfg.use2.cache.amazonaws.com:11211",
20+
"engine": "memcached",
21+
"engine_version": "1.6.6",
22+
"id": "cluster-example",
23+
"maintenance_window": "fri:02:30-fri:03:30",
24+
"node_type": "cache.t2.micro",
25+
"num_cache_nodes": 1,
26+
"parameter_group_name": "default.memcached1.6",
27+
"port": 11211,
28+
"snapshot_retention_limit": 0,
29+
"snapshot_window": "",
30+
"subnet_group_name": "default"
31+
}
32+
}
33+
]

0 commit comments

Comments
 (0)