Skip to content
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