Pulumi template aims to build some useful infrastructures such as data-pipeline etc. on clouds.
Every template is use yaml file like below:
env:
cloud:
template:
iam:
storage:
dwh:
stream:
api_gateway:
You can found the example template here
You can read the related posts
https://www.pulumi.com/docs/install/
In order to run pulumi commands you need to log in first.
pulumi login
To zip from source-code(Since cloud functions need to zipped code):
make function-zip
Pulumi up:
make up stack=datapipeline-firehose-redshift-apigateway
This command output gives confirmation prompt you need to press ENTER. It will be created a stack according to given stack.After that pulumi up command will be executed.
Available stacks:
- datapipeline-firehose-s3-lambda
- datapipeline-firehose-s3-apigateway
- datapipeline-firehose-redshift-apigateway
- datapipeline-pubsub-bigquery-apigateway
- datapipeline-pubsub-bigquery-lambda
- datapipeline-pubsub-storage
Pulumi destroy:
make destroy stack=datapipeline-firehose-redshift-apigateway
Payload:
{
"game_name": "amazing_game",
"event_name": "weapon.fired",
"event_data": {
"weapon_name": "m4a1"
}
}
Since AWS IAM activated and GCP Auth enabled you need to take a token for authenticated request.
For GCP :
make gcp-token
For AWS :
https://docs.aws.amazon.com/IAM/latest/UserGuide/create-signed-request.html
AWS :
GCP :