Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗄 Attach a 50 GiB EBS volume to Jenkins EC2 instance #15

Open
sydrawat01 opened this issue Nov 20, 2023 · 1 comment
Open

🗄 Attach a 50 GiB EBS volume to Jenkins EC2 instance #15

sydrawat01 opened this issue Nov 20, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request feature-req A good "to-have" feature, following best practices. good first issue Good for newcomers

Comments

@sydrawat01
Copy link
Member

sydrawat01 commented Nov 20, 2023

Use block_device_mappings to attach an ebs volume to the ec2 instance here:

resource "aws_instance" "jenkins_server" {

# `aws_launch_template` preferred over `aws_instance`
block_device_mappings {
    device_name = "/dev/xvda"

    ebs {
      delete_on_termination = true
      volume_size           = 50
      volume_type           = "gp2"
      encrypted             = true
      # use `kms_key_id` only if you want to encrypt the ebs volume with your kms key
      kms_key_id            = aws_kms_key.ebs.arn
    }
}
@sydrawat01 sydrawat01 self-assigned this Nov 20, 2023
@sydrawat01 sydrawat01 converted this from a draft issue Nov 20, 2023
@sydrawat01 sydrawat01 added enhancement New feature or request good first issue Good for newcomers labels Nov 20, 2023
@sydrawat01 sydrawat01 changed the title 🗄 Attach a 50GiB EBS volume to Jenkins EC2 instance 🗄 Attach a 50 GiB EBS volume to Jenkins EC2 instance Nov 20, 2023
@sydrawat01 sydrawat01 moved this from 🆕 New to 📋 Backlog in ☁️ kanban Nov 20, 2023
@sydrawat01 sydrawat01 added the feature-req A good "to-have" feature, following best practices. label Dec 2, 2023
@sydrawat01
Copy link
Member Author

This also needs to be updated in ami-jenkins custom AMI built using Packer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature-req A good "to-have" feature, following best practices. good first issue Good for newcomers
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant