Skip to content

Commit

Permalink
Try arm
Browse files Browse the repository at this point in the history
  • Loading branch information
binoculars committed Sep 10, 2023
1 parent 165db40 commit 611455e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/aws/lib/applications/appsync-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class AppsyncStack extends cdk.Stack {

const apiLambda = new lambda_nodejs.NodejsFunction(this, 'AppSyncHandler', {
runtime: lambda.Runtime.NODEJS_18_X,
architecture: lambda.Architecture.ARM_64,
entry: path.join(__dirname, '../../../api/main.ts'),
bundling: {
minify: true,
Expand All @@ -113,6 +114,7 @@ export class AppsyncStack extends cdk.Stack {
this,
'MediaHandler',
{
architecture: lambda.Architecture.ARM_64,
code: lambda.DockerImageCode.fromImageAsset(
path.join(__dirname, '../../../media-handler/')
),
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/lib/applications/web-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class WebStack extends cdk.Stack {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_4,
buildImage: codebuild.LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_2_0,
privileged: true,
environmentVariables: {
REPOSITORY_NAME: {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/lib/cd-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class CDStack extends cdk.NestedStack {
}),
environment: {
privileged: true,
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_4,
buildImage: codebuild.LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_2_0,
environmentVariables: {
REPOSITORY_NAME: {
type: codebuild.BuildEnvironmentVariableType.PLAINTEXT,
Expand Down

0 comments on commit 611455e

Please sign in to comment.