$ terraform
Usage: terraform [--version] [--help] <command> [args]
The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.
Common commands:
apply Builds or changes infrastructure
console Interactive console for Terraform interpolations
destroy Destroy Terraform-managed infrastructure
fmt Rewrites config files to canonical format
get Download and install modules for the configuration
graph Create a visual graph of Terraform resources
import Import existing infrastructure into Terraform
init Initialize a new or existing Terraform configuration
output Read an output from a state file
plan Generate and show an execution plan
providers Prints a tree of the providers used in the configuration
push Upload this Terraform module to Terraform Enterprise to run
refresh Update local state file against real resources
show Inspect Terraform state or plan
taint Manually mark a resource for recreation
untaint Manually unmark a resource as tainted
validate Validates the Terraform files
version Prints the Terraform version
workspace Workspace management
All other commands:
debug Debug output management (experimental)
force-unlock Manually unlock the terraform state
state Advanced state management
Quotes
Wednesday, May 22, 2019
Terraform
AWS X-Ray SDK
Installing
The AWS X-Ray SDK for Node.js is compatible with Node.js version 4 and later. The AWS X-Ray SDK for Node.js has been tested with versions 4.x through 12.x of Node.js. There may be issues when running on versions of Node.js newer than 12.x.
The SDK is available from NPM. For local development, install the SDK in your project directory with npm.
npm install aws-xray-sdk
Use the --save option to save the SDK as a dependency in your application's package.json.
npm install aws-xray-sdk --save
Thursday, May 9, 2019
DynamoDB Partitions links
1) Partitions and Data Distribution: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.Partitions.html
2) DynamoDB streams: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html
3) DynamoDB streams Boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html
4) Queries with DynamoDB: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html
2) DynamoDB streams: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.html
3) DynamoDB streams Boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams.html
4) Queries with DynamoDB: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html
Tuesday, May 7, 2019
Kafka vs AWS Kinesis
Apache Kafka | Amazon Kinesis | ||
---|---|---|---|
Developed/Hosted By | Amazon | ||
Software | Open-Source | Proprietary | |
SDK Support | AWS SDK supports Android, Java, Go, .NET | Kafka SDK supports Java | |
Configuration & Features | More control on configuration and better performance. | Number of days/shards can only be configured | |
Data Stored In | Kafka Partition | Kinesis Shard | |
Reliability | Replication factor can be configured | Kinesis writes synchronously to 3 different machines/data-centers | |
Performance | Kafka wins | Kinesis writes each message synchronously to 3 different machines | |
Configuration Store | Apache Zookeeper | Amazon DynamoDB | |
Setup | Weeks | Couple Of hours | |
Data Retention | Configurable | 7 days at max | |
Log Compaction | Supported | Only can store logs for 7 days | |
Processing Events | More than 1000s of events/sec | Atmost 1000s of events/sec | |
Checkpointing | Offsets stored in special topic | DynamoDB | |
Ordering | Partion level | Shard level | |
Human Costs | Require human support for installing and managing their clusters, and also accounting for requirements such as high availability, durability, and recovery | Kinesis is just about pay and use | |
Producer Throughput | Kafka Wins | Kinesis is bit slower than Kafka | |
Incident Risk/Maintainence | More In Kafka | Amazon takes care | |
Ordered sequence of immutable data records | Kafka Topic | Kinesis Stream | |
Each record has a unique number called | Offset number | Sequence number | |
Concepts | Kafka Streams | Kinesis Analytics |
Subscribe to:
Posts (Atom)