Skip to content

specify enable sudo or not #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions serverless-bastion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Serverless Bastion
$ SSH_PASSWORD=
```

## Decide enable sudo or not

```
$ ENABLESUDO=
```

## Create a base stack & retrieve the outputs

```
Expand Down
6 changes: 6 additions & 0 deletions serverless-bastion/cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ Metadata:
default: SSH Configuration
Parameters:
- Password
- ENABLESUDO

Parameters:
Password:
Description: SSH password
Type: String
ENABLESUDO:
Description: ENABLESUDO
Type: String

Mappings:
SubnetConfig:
Expand Down Expand Up @@ -208,6 +212,8 @@ Resources:
Environment:
- Name: SSH_PASSWORD
Value: !Ref Password
- Name: ENABLE_SUDO
Value: !Ref ENABLESUDO
LogConfiguration:
LogDriver: awslogs
Options:
Expand Down