The Terraform scripts can be configured using the following parameters:
Parameter | Description |
---|---|
s3_bucket |
The name of S3 Bucket to store the objects. |
region |
The AWS region where the service will be deployed. Default is us-east-1 |
url_length |
The length of the key to be used for a short URL. Default is 8 |
hash_salt |
The salt so keys generated for short URL are unique only to you. A salt string can be between 6 and 32 characters providing decent randomization. Reference |
expiration_days |
The number of days for short URLs before they expire. Default is 30 days |
is_custom_domain_available |
Set his to true if you would like to use a custom domain as an alias for the Cloudfront Distribution domain. If true, You should provide value for dns_name must be provided and Public Hosted Zone should be available for the Domain in Route53. Default value is false. |
dns_name |
The domain name to be used for URL shortener as an alias to Cloudfront distribution. |
env |
Env name for the service. Default is dev. |
app_name |
Env name for the service. Default is dev. |
is_enable_url_tracking |
To enable URL click tracking and storing stats in DynamoDB table. Default is: short-url-tracking |
insert_batch_size |
Insert operation batch size to DynamoDB table. Default is 10 |
-
Different types of Short URLs supported as follows:
S.No. Link Type Description 1 Custom Branded Link Short URLs with custom domain name and a customized back-half. Ex. https:// custom-domain
/godigital2 Branded Link Short URLs with custom domain name but no customized back-half. Ex. https://<>/5xptmnh6 3 Short URL with custom back-hald CloudFront generic domain, with a customized back-half. Ex. https:///godigital 4 Generic Short URL CloudFront generic domain, with random back-half. Ex. https:///5xptmnh6 -
URL click tracking: Capturing user statistics like click time, client device type, client browser etc. in DynamoDB table
-
Custom Domain Support: Custom DNS name support with Route53 and CloudFront.