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
Related
I am trying to create an IoT Sitewise asset in aws using terraform however it is not listed in documentation. Is there a way for me to create this or is it not supported by the provider yet? By the way I am very new to these concepts so please do not mind me if I am asking something obvious.
You are correct that as of right now, IoT Sitewise is not supported by Terraform. IoT Sitewise was just launched last month. Terraform is updated regularly with new AWS services, so the best way to find out when it becomes supported is to keep an eye on the AWS Provider Documentation in Terraform's documentation. Search for "IoT" in the navigation pane and it will populate in the search results when they have added support.
You could use the awscc (AWS Cloud Control) provider: https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/iotsitewise_asset. Later on, when it makes it to the official aws provider, you can switch to it.
I am working over AWS trying some security features like securityhub, and I was deployed it trough terraform. Now I am interested in apply from terraform AWS inspector after try it from aws console; but I don't find a way to configure this implementation applying an account delegation and full freatured deployment, I was only found the way to apply the old classic inspector over aws. There is a way to implement aws inspector v2 with terraform?
Thanks
I just saw thath Inspector v2 is a new feature (released one month ago) and at the moment is is not supported by Terraform.
Terraform GitHub Issue
Is it possible to get complete resources/instances related details easily in excel or cloud formation template of our existing AWS account!!
This is not a service that AWS provides out of the box, you would need to make use of the CLI or SDK to retrieve these details in a format that matches what you want.
No. It is not possible to get a list of all the resources in an account. You will have to use AWS CLI and use options like
aws configservice list-discovered-resources --resource-type
Where resource type is the type of resource you want to fetch the list for.
Hope this helps.
I would like to create a Stackdriver Workpace programmatically by Using Scripts, Terraform template or API as I need to avoid manual steps to create Stackdriver workspace for each projects manually. It should be a part of terraform or API to create it automatically for the projects required Stackdriver monitoring
Can any one provide a solution or suggestions for the same.
Thank you.
Ashok
This feature is not available yet. more info here
I wanted to create an AWS Dashboard using cloudformation but did find a way.
Guess AWS has not yet added support for that.
As an alternative is it possible to create that using AWS CLI
AWS just announced support for this.
https://aws.amazon.com/blogs/aws/new-api-cloudformation-support-for-amazon-cloudwatch-dashboards/
CloudFormation documentation is also available: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dashboard.html
If I'm correct your question is concerns Resource Groups. It is not possible at this time to create Resource Group in Cloud Formation Templates or via the awscli.
Resource Groups are tied to a User, not an account - so it's not possible to define them at an account level and allow Users to access them.
It's possible for a User to 'Share' a Resource Group they've created by passing a URL to another User.