-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from anitabee/master
Option to launch encrypted EBS root volume from unencrypted AMI
- Loading branch information
Showing
7 changed files
with
164 additions
and
109 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/main/java/hudson/plugins/ec2/EbsEncryptRootVolume.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package hudson.plugins.ec2; | ||
|
||
import edu.umd.cs.findbugs.annotations.NonNull; | ||
|
||
public enum EbsEncryptRootVolume { | ||
DEFAULT("Based on AMI", null), | ||
ENCRYPTED("Encrypted", true), | ||
UNENCRYPTED("Not Encrypted", false); | ||
|
||
private final String displayText; | ||
private final Boolean value; | ||
|
||
EbsEncryptRootVolume(String displayText, Boolean value) { | ||
this.displayText = displayText; | ||
this.value = value; | ||
} | ||
|
||
@NonNull | ||
public String getDisplayText() { | ||
return displayText; | ||
} | ||
|
||
public Boolean getValue() { | ||
return value; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-ebsEncryptRootVolume.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
Option to launch encrypted EBS backed EC2 instances from unencrypted AMIs in a single step. | ||
<ul> | ||
<li><b><i>Based on AMI</i></b>: EBS will be either encrypted or not encrypted based on what is defined in AMI</li> | ||
<li><b><i>Not Encrypted</i></b>: Launches not encrypted EBS</i></b></li> | ||
<li><b><i>Encrypted</i></b>: Launches encrypted EBS</li> | ||
</ul> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters