This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #22 from conjurinc/support-encrypted-ebs-base
Support encrypted ebs base
- Loading branch information
Showing
7 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM mesosphere/aws-cli | ||
FROM alpine:latest | ||
MAINTAINER Jason Vanderhoof <[email protected]> | ||
|
||
ENV BUILD_DEPENDENCIES libffi-dev openssl ca-certificates linux-headers | ||
|
@@ -8,13 +8,14 @@ ENV RUBY_PACKAGES ruby ruby-dev ruby-rdoc ruby-irb build-base ruby-io-console | |
# At the end, remove the apk cache | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add aws-cli && \ | ||
apk add $BUILD_DEPENDENCIES && \ | ||
apk add $RUBY_PACKAGES && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
RUN update-ca-certificates | ||
|
||
RUN gem install test-kitchen kitchen-ec2 berkshelf:6.3.2 rspec-retry --no-document | ||
RUN gem install test-kitchen kitchen-ec2 berkshelf rspec-retry --no-document | ||
|
||
RUN mkdir -p /src | ||
ENTRYPOINT [] |
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
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,23 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
REGION="us-east-1" | ||
ACTION="enable" | ||
|
||
if [ $# -gt 0 ] && [[ -n $1 ]]; then | ||
if [[ "$1" == "enable" ]]; then | ||
ACTION="$1" | ||
elif [[ "$1" == "disable" ]]; then | ||
ACTION="$1" | ||
else | ||
echo "Unknown action $1, must be one of enable | disable" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
if [ $# -gt 1 ] && [[ -n $2 ]]; then | ||
REGION="$2" | ||
fi | ||
|
||
summon docker run --rm --env-file @SUMMONENVFILE \ | ||
amazon/aws-cli ec2 --region "$REGION" $ACTION-ebs-encryption-by-default |
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