Skip to content

Conversation

@andrestone
Copy link
Contributor

@andrestone andrestone commented Mar 5, 2020

! Integration tests are failing on master, waiting for this fix to be merged.

Launch template support

Related issues:

Usage

Simply define your Launch Template:

    const myLaunchTemplate = new ec2.CfnLaunchTemplate(this, 'LaunchTemplate', {
      launchTemplateName: 'extra-storage-template',
      launchTemplateData: {
        blockDeviceMappings: [
          {
            deviceName: '/dev/xvdcz',
            ebs: {
              encrypted: true,
              volumeSize: 100,
              volumeType: 'gp2'
            }
          }
        ]
      }
    });

and use it:

    const myComputeEnv = new batch.ComputeEnvironment(this, 'ComputeEnv', {
      computeResources: {
        launchTemplate: {
          launchTemplateName: myLaunchTemplate.launchTemplateName as string, //or simply use an existing template name
        },
        vpc,
      },
      computeEnvironmentName: 'MyStorageCapableComputeEnvironment',
    });

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 39d1565
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 50ed7a4
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Contributor

@iliapolo iliapolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just docstrings, code looks good. Also, lets align the PR description with #6549 (comment).

Thanks!

@iliapolo
Copy link
Contributor

iliapolo commented Mar 6, 2020

@andrestone I love it, so clean!

@mergify mergify bot dismissed iliapolo’s stale review March 6, 2020 19:09

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 5239658
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@andrestone andrestone force-pushed the feat-aws-batch-launch-template branch from 5239658 to 900e657 Compare March 6, 2020 19:40
@andrestone
Copy link
Contributor Author

I guess it's mergeable now?
Thanks!

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 900e657
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@iliapolo
Copy link
Contributor

iliapolo commented Mar 6, 2020

I guess it's mergeable now?
Thanks!

This wasn't merged yet: #6549

Also the PR description thing

@andrestone
Copy link
Contributor Author

andrestone commented Mar 6, 2020 via email

@iliapolo
Copy link
Contributor

iliapolo commented Mar 6, 2020

Wouldn't the squash commit be ok as well?

Whoops sorry, didn't notice it. Yeap all good. You just need to re-run CodeBuild project by pushing a dummy commit.

@andrestone andrestone force-pushed the feat-aws-batch-launch-template branch from 900e657 to d2e3e30 Compare March 6, 2020 20:31
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: d2e3e30
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@andrestone
Copy link
Contributor Author

Maaaaaa bad. Gotta remake expected.json

@iliapolo
Copy link
Contributor

iliapolo commented Mar 6, 2020

Are you running ‘yarn integ’ to produce the expected template?

@andrestone
Copy link
Contributor Author

andrestone commented Mar 6, 2020 via email

@andrestone andrestone force-pushed the feat-aws-batch-launch-template branch from d2e3e30 to 07322be Compare March 6, 2020 22:58
@andrestone
Copy link
Contributor Author

andrestone commented Mar 6, 2020

Ma bad, build passed.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 07322be
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 7, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 376d49b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 7, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 2b02693 into aws:master Mar 7, 2020
eladb pushed a commit that referenced this pull request Mar 9, 2020
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
horsmand pushed a commit to horsmand/aws-cdk that referenced this pull request Mar 9, 2020
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants