diff --git a/python/docker-app-with-asg-alb/dockerized_app_cdk/rds_stack.py b/python/docker-app-with-asg-alb/dockerized_app_cdk/rds_stack.py index a695a174c..1086ffc99 100644 --- a/python/docker-app-with-asg-alb/dockerized_app_cdk/rds_stack.py +++ b/python/docker-app-with-asg-alb/dockerized_app_cdk/rds_stack.py @@ -34,7 +34,7 @@ def __init__(self, scope: core.Construct, id: str, props, **kwargs) -> None: engine=rds.DatabaseInstanceEngine.MYSQL, vpc=props['vpc'], port=3306, - instance_class=ec2.InstanceType.of( + instance_type=ec2.InstanceType.of( ec2.InstanceClass.MEMORY4, ec2.InstanceSize.LARGE, ), diff --git a/python/new-vpc-alb-asg-mysql/cdk_vpc_ec2/cdk_rds_stack.py b/python/new-vpc-alb-asg-mysql/cdk_vpc_ec2/cdk_rds_stack.py index 3e96c44ce..f3ec3b5ce 100644 --- a/python/new-vpc-alb-asg-mysql/cdk_vpc_ec2/cdk_rds_stack.py +++ b/python/new-vpc-alb-asg-mysql/cdk_vpc_ec2/cdk_rds_stack.py @@ -33,7 +33,7 @@ def __init__(self, scope: core.Construct, id: str, vpc, asg_security_groups, **k db_mysql_easy = rds.DatabaseInstance(self, "MySQL_DB_easy", engine=rds.DatabaseInstanceEngine.MYSQL, engine_version="5.7.22", - instance_class=ec2.InstanceType.of( + instance_type=ec2.InstanceType.of( ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL), master_username="admin", vpc=vpc, diff --git a/python/rds/app.py b/python/rds/app.py index 29554bfdc..c63ed85db 100644 --- a/python/rds/app.py +++ b/python/rds/app.py @@ -12,7 +12,7 @@ def __init__(self, app: core.App, id: str, **kwargs) -> None: super().__init__(app, id, **kwargs) vpc = ec2.Vpc(self, "VPC") - + rds.DatabaseInstance( self, "RDS", master_username="master", @@ -22,8 +22,8 @@ def __init__(self, app: core.App, id: str, **kwargs) -> None: engine=rds.DatabaseInstanceEngine.MYSQL, vpc=vpc, port=3306, - instance_class=ec2.InstanceType.of( - ec2.InstanceClass.MEMORY4, + instance_type= ec2.InstanceType.of( + ec2.InstanceClass.MEMORY4, ec2.InstanceSize.LARGE, ), removal_policy=core.RemovalPolicy.DESTROY, diff --git a/scripts/build-java.sh b/scripts/build-java.sh index de5d2b883..aa2cc3713 100755 --- a/scripts/build-java.sh +++ b/scripts/build-java.sh @@ -16,7 +16,7 @@ for pomFile in $(find $scriptdir/../java -name pom.xml); do cd $(dirname $pomFile) if [[ -f DO_NOT_AUTOTEST ]]; then exit 0; fi - mvn compile test + mvn -q compile test $scriptdir/synth.sh )