cookbook 'choregraphie_dynamodb_lock', '~> 0.2.0'
choregraphie_dynamodb_lock (3) Versions 0.2.0 Follow0
AWS DynamoDB lock primitive for chef choregraphie
cookbook 'choregraphie_dynamodb_lock', '~> 0.2.0', :supermarket
knife supermarket install choregraphie_dynamodb_lock
knife supermarket download choregraphie_dynamodb_lock
choregraphie_dynamodb_lock Cookbook
This cookbook provides AWS DynamoDB lock primitive for choregraphie cookbook
Usage
Check choregraphie documentation on how to use primitives in chef recipes.
Primitive attributes
:table
- (Required) name of a table to use
:hash_key
- (Required) DynamoDB table hash key name
:id
- (Required) unique id for lock name
:create_table
- (Optional) create DynamoDB table if it's missing. Default: false
:ttl
- (Optional) TTL for lock before it expires, in seconds. Default: 30
:expires_key
- (Optional) Name of TTL attribute in table . Default: Expires
Example:
ruby
dynamodb_lock(table: 'LockTable', hash_key: 'id', id: 'my_node', ttl: 600)
AWS Configuration
Block can be used to provide specific AWS Config:
ruby
...
dynamodb_lock(table: 'LockTable', hash_key: 'id', id: 'my_node') do
require 'aws-sdk-dynamodb'
Aws.config.update({
region: 'us-west-2',
})
end
...
Requirements
Platforms
- Any platform supported by Chef and the AWS-SDK
Chef
- Chef 12.6+
References
Dependent cookbooks
choregraphie >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Choregraphie DynamoDB Lock Cookbook CHANGELOG
This file is used to list changes made in each version of the Choregraphie DynamoDB Lock cookbook.
0.2.0 (2018-10-15)
- Add support for expires attribute name
0.1.2 (2018-07-23)
- Fix unit and lint tests
0.1.0
- Initial Release
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.0 failed this metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.0 passed this metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.0 failed this metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number