-
Notifications
You must be signed in to change notification settings - Fork 19
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 #24 from theonestack/volumes_with_refs
adds support for adding volumes with driver config
- Loading branch information
Showing
2 changed files
with
45 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
test_metadata: | ||
type: config | ||
name: ecs service with volumes that include a Ref | ||
description: Creates an ecs service with volumes | ||
|
||
volumes: | ||
- /data | ||
- test:/test | ||
- ${EnvironmentName}:/etc/${EnvironmentName} | ||
- Name: | ||
Fn::Sub: ${EnvironmentName}.mybucket | ||
DockerVolumeConfiguration: | ||
Driver: rexray/s3fs | ||
Scope: shared | ||
|
||
|
||
task_definition: | ||
sftp: | ||
image: nginx | ||
tag: latest | ||
privileged: true | ||
mounts: | ||
- /etc/${EnvironmentName}:${EnvironmentName} | ||
- /data:${EnvironmentName}.mybucket | ||
- /data:${EnvironmentName}.mybucket-${AWS::Region} | ||
- ContainerPath: /data | ||
SourceVolume: | ||
Fn::Sub: bucket-${EnvironmentName}-${AWS::Region} | ||
ReadOnly: false | ||
ports: | ||
- 80 |