AWS custom WAF using terraform - amazon-web-services

I am trying to create WAF rules using terraform. Being new to terraform I am searching all over the internet and finding only terraform for aws managed rulesets. Can someone point me to the usage of custom waf creation using terraform?

Related

Is there any source for identifying AWS services that support tags only AWS CLI, not cloud formation?

Is there any easy way to identify the AWS resource that does not support creating the tag using cloud formation and only allows it from AWS CLI?

how to attach dashboard with AWS managed grafana using terraform

I am trying to setup AWS Managed grafana using terraform. I am following this examples:
https://github.com/terraform-aws-modules/terraform-aws-managed-service-grafana/tree/master/examples/complete
I can able to setup the grafana via terraform. Then I created dashboard.json and tried to apply dashboard via terraform. But I am not able to find any suitable link for it. Can anyone please help me on this?
It doesn't look like theres a resource in the terraform provider for adding a dashboard just yet. Available resources
There is however an AWS REST API for it: https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-API-Dashboard.html
I've recently been investigating this myself and decided to just create them manually and store json backups of the dashboard configuration for when it becomes available.
At my place we use Pulumi, which would make it easier to add a custom integration to add dashboard to the Grafana instance, so I will be looking in to that when I have more time.
you will have to use the grafana provider for Terraform.
Here is a sample code that might help you: https://github.com/kunduso/aws_managed_grafana_workspace_dashboard/tree/main/amg_dashboard

What is the underlying mechanism that Terraform’s AWS Provider uses to provision resources in AWS?

Does it use AWS CloudFormation, the AWS CLI, or does it do something else like directly make AWS API calls without going through the CLI?
No, it not using the AWS CLI or cloud formation.
AWS terraform use the AWS SDK and here you can see the complete list of dependency for the AWS Terraform provider.
It also uses aws-sdk-go https://github.com/aws/aws-sdk-go
https://github.com/hashicorp/terraform-provider-aws

Will VPC Support for Amazon Elasticsearch Service Domains Configure Using cloudformation

I am configuring AWS Elastic Search Cluster using cloudformation but i am unable to use VPC enable cluster using CFN template so my question is this is possible configuration if yes then can someone provided me link for that.
http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-vpc.html
It is currently not supported; support will come soon according to the docs.

How to create OpsWorks users using CloudFormation?

I am trying to create a CloudFormation template that deploys my OpsWorks stack and layers and some other AWS resources. I would like to manage the users of my OpsWorks instances using the Permissions feature they offer.
I have been able to manage those users using the UI and the CLI, however I cannot find anywhere how to that with CloudFormation. I have been reading through the documentation and it seems there is no resource specified for it. Does CloudFormation not have access to all resources in the AWS APIs?
CloudFormation doesn't support OpsWorks user. But it's still possible, you can use CloudFormation custom resource to create opsworks user: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html