-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scheduled Tasks tested and working * Stronger IAM policies * Added events to index
- Loading branch information
1 parent
42c7027
commit ba4ed5c
Showing
20 changed files
with
628 additions
and
33 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
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 was deleted.
Oops, something went wrong.
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,73 @@ | ||
.. _events_syntax_reference: | ||
|
||
========== | ||
x-events | ||
========== | ||
|
||
This extension allows you to define an AWS EventBride rule to stop start services at specific times | ||
of the day or based on specific events. | ||
|
||
Properties | ||
========== | ||
|
||
You can find all the properties on the `AWS CFN Events Rules definitions`_. | ||
|
||
.. note:: | ||
|
||
You do not need to define Targets to point to the services defined in docker-compose. Refer to `Services`_ for that. | ||
|
||
MacroParameters | ||
================ | ||
|
||
No specific parameters at this time! | ||
|
||
|
||
Settings | ||
======== | ||
|
||
No specific settings at this time! | ||
|
||
Services | ||
======== | ||
|
||
There we define the tasks we want to deploy at specific times or events. | ||
|
||
.. code-block:: yaml | ||
:caption: Services syntax for rules | ||
name: service_name | ||
TaskCount: <N> | ||
DeleteDefaultService: True/False (default. False) | ||
name | ||
"""" | ||
|
||
Here we want to define the name of the **family** we want to use for trigger. If the service is not defined as part of a | ||
specific family, you can use the service name itself. | ||
|
||
.. seealso:: | ||
|
||
.. :ref:`composex_deploy_extension` | ||
*Required: Yes.* | ||
|
||
TaskCount | ||
""""""""" | ||
|
||
Same property as for ECS Parameters of the `Task Rule target definition`_ itself, this allows you to set a specific number | ||
of tasks. | ||
|
||
*Required: Yes.* | ||
|
||
.. hint:: | ||
|
||
Not using deploy/replicas on purpose, because of the `DeleteDefaultService`_ option | ||
|
||
DeleteDefaultService | ||
""""""""""""""""""""" | ||
|
||
Custom setting, this allows you to NOT define a ECS Service along with the task, therefore you will only get the TaskDefinition | ||
created. | ||
|
||
.. _AWS CFN Events Rules definitions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-rule.html | ||
.. _Task Rule target definition: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutTargets.html |
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
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,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# ECS ComposeX <https://github.com/lambda-my-aws/ecs_composex> | ||
# Copyright (C) 2020 John Mille <[email protected]> | ||
# # | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# # | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# # | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
Oops, something went wrong.