cookbook 'choregraphie_dynamodb_lock', '= 0.1.1'
choregraphie_dynamodb_lock (3) Versions 0.1.1 Follow0
AWS DynamoDB lock primitive for chef choregraphie
cookbook 'choregraphie_dynamodb_lock', '= 0.1.1', :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 befire it expires, in seconds. Default: 30
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+
DynamoDB
- If you create DynamoDB table outside of lock primitive, Time to live attribute
should be named
Expires
.
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.1.0
- Initial Release
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 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.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 failed this metric
0.1.1 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.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 passed this metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 failed this metric
0.1.1 passed this metric