forked from aws-samples/magento-ecs-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
74 lines (60 loc) · 2.96 KB
/
.projenrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
const { awscdk } = require('projen');
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
const project = new awscdk.AwsCdkTypeScriptApp({
authorName: 'Sébastien Allamand',
authorName: '[email protected]',
authorOrganization: true,
repository: 'https://github.com/aws-samples/magento-ecs-cdk.git',
copyrightPeriod: `2021-${new Date().getFullYear()}`,
copyrightOwner: 'Amazon.com, Inc. or its affiliates. All Rights Reserved.',
keywords: ['aws', 'constructs', 'cdk', 'ecs', 'magento', 'fargate', 'opensearch', 'efs', 'fsx'],
description:
'CDK Project to deploy Magento Applications on top of AWS ECS, FARGATE/EC2, EFS/FsX Ontap, RDS, OpenSearch, ElastiCashe',
cdkVersion: '2.29.1',
defaultReleaseBranch: 'main',
license: 'MIT-0',
name: 'magento-ecs-cdk',
repositoryUrl: 'https://github.com/aws-samples/magento-ecs-cdk.git',
appEntrypoint: 'integ.ts',
depsUpgradeOptions: {
ignoreProjen: true,
workflowOptions: {
labels: ['auto-approve', 'auto-merge'],
secret: AUTOMATION_TOKEN,
},
},
autoApproveOptions: {
secret: 'GITHUB_TOKEN',
allowedUsernames: ['github-actions', 'github-actions[bot]', 'allamand'],
},
context: {
//vpc_tag_name: 'ecsworkshop-base/BaseVPC', // TAG Name of the VPC to create the cluster into (or 'default' or comment to create new one)
enablePrivateLink: 'true', // this parameter seems to works only one
createEFS: 'yes', //if yes CDK will create the EFS File System
useEFS: 'yes', // if true, /bitnami/magento directory will be mapped to a new empty FSX volume.
//useFSX: 'yes', // if yes, create en EC2 based cluster (required for FsX), if no create Fargate cluster
ec2Cluster: 'no', // if yes, create en EC2 based cluster (required for FsX), if no create Fargate cluster
// You can customize Instances size
// ec2InstanceType: 'c5.9xlarge',
// rdsInstanceType: 'r6g.8xlarge',
// cacheInstanceType: 'r6g.8xlarge',
taskCpu: 1024,
taskMem: 4096,
phpMemoryLimit: '3G',
magentoMinTasks: 10,
magentoMaxTasks: 100,
//route53_domain_zone: 'sallaman.people.aws.dev', // You need ot provide a valide AWS Route53 Hosted Zone.
magento_admin_task: 'yes',
magento_admin_task_debug: 'no',
},
gitignore: ['cdk.out', 'cdk.context.json', '*.d.ts', '*.js', 'CMD', '.projenrc.js-*', '.env*', '.vscode'],
// cdkDependencies: undefined, /* Which AWS CDK modules (those that start with "@aws-cdk/") this app uses. */
// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// devDeps: [], /* Build dependencies for this module. */
// packageName: undefined, /* The "name" in package.json. */
// release: undefined, /* Add release management to this project. */
});
//Fix for this issue https://github.com/projen/projen/issues/1885
project.addDevDeps('ts-node@^10');
project.synth();