-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installation guideline orchestrator essential example
- Loading branch information
Showing
13 changed files
with
147 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[default] | ||
region=us-west-2 |
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
|
||
[packages] | ||
boto3 = "*" | ||
aws-sam-cli = "*" | ||
|
||
[requires] | ||
python_version = "3.7" |
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,12 @@ | ||
|
||
.. code-block:: bash | ||
# Install environment with SAM. | ||
cd /var/app/sosw/examples | ||
pipenv install | ||
pipenv shell | ||
cd sam | ||
sam package --template-file template.yaml --s3-bucket sosw-s3-000000000000 --output-template-file packaged.yaml | ||
sam publish --template packaged.yaml | ||
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,18 @@ | ||
"""Sosw Essential Orchestrator | ||
""" | ||
|
||
import logging | ||
|
||
from sosw.orchestrator import Orchestrator | ||
from sosw.app import LambdaGlobals, get_lambda_handler | ||
|
||
logger = logging.getLogger() | ||
logger.setLevel(logging.INFO) | ||
|
||
|
||
class Essential(Orchestrator): | ||
pass | ||
|
||
|
||
global_vars = LambdaGlobals() | ||
lambda_handler = get_lambda_handler(Essential, global_vars) |
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 @@ | ||
sosw |
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,28 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: > | ||
sosw-orchestrator | ||
Sample sosw Orchestrator deployment with SAM. | ||
Resources: | ||
|
||
SoswOrchestratorFunction: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
CodeUri: sosw_orchestrator/ | ||
Handler: app.lambda_handler | ||
Runtime: python3.7 | ||
MemorySize: 256 | ||
Timeout: 60 | ||
|
||
|
||
Outputs: | ||
SoswOrchestratorFunction: | ||
Description: "sosw Orchestrator Essential Function" | ||
Value: !GetAtt SoswOrchestratorFunction.Arn | ||
|
||
HelloWorldFunctionIamRole: | ||
Description: "Implicit IAM Role for Orchestrator Essential Function" | ||
Value: !GetAtt SoswOrchestratorFunctionRole.Arn |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.