INFRA-4031 | Ankit Bhardwaj | enable bucket policy changes in amc , pay , iapl prod (#742)
* INFRA-4031 | Ankit Bhardwaj | add new buckey policy fiels * INFRA-4031 | Ankit Bhardwaj | add old s3_bucket_policies * INFRA-4031 | Ankit Bhardwaj | add conditional render of s3_bucket policy * INFRA-4031 | Ankit Bhardwaj | enable bucket policy changes in amc , pay , iapl prod
This commit is contained in:
committed by
GitHub
parent
d7293c6138
commit
fc5f90c5ac
@@ -24,7 +24,7 @@ import {
|
||||
getBucketsDeploymentStatus,
|
||||
S3StorageClassOptions,
|
||||
disasterRecovery,
|
||||
newBucketPolicyEnvs,
|
||||
newBucketPolicyCluster,
|
||||
} from './constants';
|
||||
import { useStyles } from './useStyles';
|
||||
import {
|
||||
@@ -444,7 +444,7 @@ const S3BucketForm = (): React.ReactNode => {
|
||||
/>
|
||||
<LifecycleRules s3Bucket={`extraResources.s3_buckets.${i}`} />
|
||||
<CorsPolicy s3Bucket={`extraResources.s3_buckets.${i}`} />
|
||||
{newBucketPolicyEnvs.has(values.environment) ? (
|
||||
{newBucketPolicyCluster.has(values.cluster) ? (
|
||||
<BucketPolicy s3Bucket={`extraResources.s3_buckets.${i}`} bucketIndex={i} />
|
||||
) : (
|
||||
<S3BucketPolicy s3Bucket={`extraResources.s3_buckets.${i}`} />
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { Cluster } from '@constants/Cluster';
|
||||
|
||||
export const storageClassMap = [
|
||||
{ description: 'Standard IA', value: 'STANDARD_IA' },
|
||||
{ description: 'One Zone IA', value: 'ONEZONE_IA' },
|
||||
@@ -29,11 +31,15 @@ export function getBucketsDeploymentStatus(Value: any): boolean[] {
|
||||
return status;
|
||||
}
|
||||
|
||||
export const newBucketPolicyEnvs = new Set([
|
||||
'local',
|
||||
'perf',
|
||||
'dev',
|
||||
'qa',
|
||||
'data-platform-nonprod',
|
||||
'uat',
|
||||
export const newBucketPolicyCluster = new Set([
|
||||
Cluster.SPIKE,
|
||||
Cluster.LENDING_NP,
|
||||
Cluster.AMC_NP,
|
||||
Cluster.GI_NP,
|
||||
Cluster.PAY_NP,
|
||||
Cluster.SA_NP,
|
||||
Cluster.PPL_NONPROD,
|
||||
Cluster.IAPL_PROD,
|
||||
Cluster.PAY_PROD,
|
||||
Cluster.AMC_PROD,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user