File tree 3 files changed +20
-7
lines changed
examples/atlas-encryptionAtRest-roles
3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1
1
variable "public_key" {
2
2
description = " The public API key for MongoDB Atlas"
3
+ default = " "
3
4
}
4
5
variable "private_key" {
5
6
description = " The private API key for MongoDB Atlas"
7
+ default = " "
6
8
}
7
9
variable "project_id" {
8
10
description = " Atlas project ID"
11
+ default = " "
9
12
}
10
13
variable "customer_master_key" {
11
14
description = " The customer master secret key for AWS Account"
15
+ default = " "
12
16
}
13
17
variable "atlas_region" {
14
18
default = " US_EAST_1"
@@ -21,7 +25,9 @@ variable "cpa_role_id" {
21
25
}
22
26
variable "access_key" {
23
27
description = " The access key for AWS Account"
28
+ default = " "
24
29
}
25
30
variable "secret_key" {
26
31
description = " The secret key for AWS Account"
32
+ default = " "
27
33
}
Original file line number Diff line number Diff line change 1
1
variable "public_key" {
2
2
description = " The public API key for MongoDB Atlas"
3
+ default = " "
3
4
}
4
5
variable "private_key" {
5
6
description = " The private API key for MongoDB Atlas"
7
+ default = " "
6
8
}
7
9
variable "project_id" {
8
10
description = " Atlas project ID"
11
+ default = " "
9
12
}
10
13
variable "access_key" {
11
14
description = " The access key for AWS Account"
15
+ default = " "
12
16
}
13
17
variable "secret_key" {
14
18
description = " The secret key for AWS Account"
19
+ default = " "
15
20
}
16
21
variable "customer_master_key" {
17
22
description = " The customer master secret key for AWS Account"
23
+ default = " "
18
24
}
19
25
variable "atlas_region" {
20
26
default = " US_EAST_1"
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ package integration_testing
2
2
3
3
import (
4
4
"fmt"
5
- //"github.com/gruntwork-io/terratest/modules/terraform"
6
5
"os"
7
6
"strings"
8
7
"testing"
8
+
9
+ "github.com/gruntwork-io/terratest/modules/terraform"
9
10
)
10
11
11
12
func SkipTestExtCred (t * testing.T ) {
@@ -14,15 +15,15 @@ func SkipTestExtCred(t *testing.T) {
14
15
}
15
16
}
16
17
func TestTerraformResourceMongoDBAtlasEncryptionAtRestWithRole_basicAWS (t * testing.T ) {
17
- SkipTestExtCred (t )
18
+ // SkipTestExtCred(t)
18
19
t .Parallel ()
19
20
20
21
var (
21
- projectID = os .Getenv ("MONGODB_ATLAS_PROJECT_ID" )
22
- accessKey = os .Getenv ("AWS_ACCESS_KEY_ID" )
23
- secretKey = os .Getenv ("AWS_SECRET_ACCESS_KEY" )
24
- customerKey = os .Getenv ("AWS_CUSTOMER_MASTER_KEY_ID" )
25
- awsRegion = os .Getenv ("AWS_REGION" )
22
+ projectID = "6000bb36bbfcd935474d03e7" // os.Getenv("MONGODB_ATLAS_PROJECT_ID")
23
+ accessKey = "AKIAXSTIPGBGHJCKFLHQ" // os.Getenv("AWS_ACCESS_KEY_ID")
24
+ secretKey = "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" // os.Getenv("AWS_SECRET_ACCESS_KEY")
25
+ customerKey = "0872a341-e04a-40f1-b8dd-32856555c3d6" // os.Getenv("AWS_CUSTOMER_MASTER_KEY_ID")
26
+ awsRegion = "US_EAST_1" // os.Getenv("AWS_REGION")
26
27
publicKey = os .Getenv ("MONGODB_ATLAS_PUBLIC_KEY" )
27
28
privateKey = os .Getenv ("MONGODB_ATLAS_PRIVATE_KEY" )
28
29
)
You can’t perform that action at this time.
0 commit comments