Merge pull request #38 from navi-infra/INFRA-000
INFRA-000| Deepak Jain| fixing s3 bucket resources
This commit is contained in:
@@ -1,75 +1,74 @@
|
|||||||
{
|
{
|
||||||
"extraResources": {
|
"extraResources": {
|
||||||
"environment": "dev",
|
"environment": "dev",
|
||||||
"database": {
|
"database": {
|
||||||
"instanceName": "foo-service",
|
"instanceName": "foo-service",
|
||||||
"user": "foo_service_user",
|
"user": "foo_service_user",
|
||||||
"password": "foo_service_password",
|
"password": "foo_service_password",
|
||||||
"sizeInGb": 7,
|
"sizeInGb": 7,
|
||||||
"dbNames": ["foo_service"],
|
"dbNames": ["foo_service"],
|
||||||
"dbExtensions": ["pgcrypto"],
|
"dbExtensions": ["pgcrypto"],
|
||||||
"readonlyUser": "foo_readonly_user",
|
"readonlyUser": "foo_readonly_user",
|
||||||
"readonlyPassword": "foo_readonly_password",
|
"readonlyPassword": "foo_readonly_password",
|
||||||
"applyImmediately": false,
|
"applyImmediately": false,
|
||||||
"performanceInsightsEnabled": false,
|
"performanceInsightsEnabled": false,
|
||||||
"readReplica": {
|
"readReplica": {
|
||||||
"awsInstanceClass": "db.t3.micro",
|
"awsInstanceClass": "db.t3.micro",
|
||||||
"performanceInsightsEnabled": true
|
"performanceInsightsEnabled": true
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"rds.logical_replication": "1"
|
"rds.logical_replication": "1"
|
||||||
},
|
},
|
||||||
"rdsAlertThresholds": {
|
"rdsAlertThresholds": {
|
||||||
"cpuUtilization": 70,
|
"cpuUtilization": 70,
|
||||||
"cpuCreditBalance": 120,
|
"cpuCreditBalance": 120,
|
||||||
"burstBalance": 85,
|
"burstBalance": 85,
|
||||||
"dbConnections": 200,
|
"dbConnections": 200,
|
||||||
"queueDepth": 20,
|
"queueDepth": 20,
|
||||||
"freeStorageSpacePercent": 90,
|
"freeStorageSpacePercent": 90,
|
||||||
"freeMemoryTooLowInMB": 150,
|
"freeMemoryTooLowInMB": 150,
|
||||||
"readLatency": 0.5,
|
"readLatency": 0.5,
|
||||||
"writeLatency": 0.5
|
"writeLatency": 0.5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"aws_access": {
|
"aws_access": {
|
||||||
"policies": [{
|
"policies": [
|
||||||
"actions": ["s3:GetObject", "s3:PutObject"],
|
{
|
||||||
"resource": "arn:aws:s3:::navi-e3e2a9bfd88566b05001b02a3f51d286/*"
|
"actions": ["s3:GetObject", "s3:PutObject"],
|
||||||
},
|
"resource": "arn:aws:s3:::navi-e3e2a9bfd88566b05001b02a3f51d286/*"
|
||||||
{
|
},
|
||||||
"actions": ["s3:GetObject", "s3:PutObject"],
|
{
|
||||||
"resource": "*"
|
"actions": ["s3:GetObject", "s3:PutObject"],
|
||||||
},
|
"resource": "*"
|
||||||
{
|
},
|
||||||
"resource": "arn:aws:s3:::arn:aws:s3:::test-bucket-to-be-deleted/*",
|
{
|
||||||
"actions": ["sns:Publish", "sns:SetSMSAttributes"]
|
"resource": "arn:aws:s3:::arn:aws:s3:::test-bucket-to-be-deleted/*",
|
||||||
}
|
"actions": ["sns:Publish", "sns:SetSMSAttributes"]
|
||||||
]
|
}
|
||||||
},
|
]
|
||||||
"s3_buckets": [{
|
},
|
||||||
"anonymizedBucketName": "navi-bucket-test-1",
|
"s3_buckets": [
|
||||||
"bucketTag": "customer-uploads",
|
{
|
||||||
"lifecycleRules": [{
|
"anonymizedBucketName": "navi-bucket-test-1",
|
||||||
"expiration": {
|
"bucketTag": "customer-uploads"
|
||||||
"days": 1
|
},
|
||||||
}
|
{
|
||||||
}]
|
"anonymizedBucketName": "navi-bucket-test-2",
|
||||||
},
|
"bucketTag": "document-uploads",
|
||||||
{
|
"lifecycleRules": [
|
||||||
"anonymizedBucketName": "navi-bucket-test-2",
|
{
|
||||||
"bucketTag": "document-uploads",
|
"expiration": {
|
||||||
"lifecycleRules": [{
|
"days": 1
|
||||||
"expiration": {
|
}
|
||||||
"days": 1
|
}
|
||||||
}
|
]
|
||||||
}]
|
}
|
||||||
}
|
]
|
||||||
]
|
},
|
||||||
},
|
"team": {
|
||||||
"team": {
|
"name": "Infra"
|
||||||
"name": "Infra"
|
},
|
||||||
},
|
"deployment": {
|
||||||
"deployment": {
|
"name": "foo"
|
||||||
"name": "foo"
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
2
types.go
2
types.go
@@ -69,7 +69,7 @@ type StateStoreBackend struct {
|
|||||||
type S3Bucket struct {
|
type S3Bucket struct {
|
||||||
BucketName string `json:"anonymizedBucketName" valid:"required"`
|
BucketName string `json:"anonymizedBucketName" valid:"required"`
|
||||||
BucketTag string `json:"bucketTag" valid:"required"`
|
BucketTag string `json:"bucketTag" valid:"required"`
|
||||||
LifecycleRules []map[string]LifecycleRule `json:"lifecycleRules" valid:"required"`
|
LifecycleRules []map[string]LifecycleRule `json:"lifecycleRules"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RdsAlertThresholds struct {
|
type RdsAlertThresholds struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user