Terraform `signalfx` Provider
=========================
- Website: https://www.terraform.io
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)
Requirements
------------
- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin)
Building The Provider
---------------------
Clone repository to: `$GOPATH/src/github.com/splunk-terraform/terraform-provider-signalfx`
```sh
$ git clone git@github.com:splunk-terraform/terraform-provider-signalfx.git $GOPATH/src/github.com/splunk-terraform/terraform-provider-signalfx
```
Enter the provider directory and build the provider
```sh
$ cd $GOPATH/src/github.com/splunk-terraform/terraform-provider-signalfx
$ make build
```
Using the provider
----------------------
If you're building the provider, follow the instructions to [install it as a plugin.](https://www.terraform.io/docs/plugins/basics.html#installing-a-plugin) After placing it into your plugins directory, run `terraform init` to initialize it.
Further [usage documentation is available on the Terraform website](https://www.terraform.io/docs/providers/signalfx/index.html).
Developing the Provider
---------------------------
If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.11+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
```sh
$ make bin
...
$ $GOPATH/bin/terraform-provider-signalfx
...
```
In order to test the provider, you can simply run `make test`.
```sh
$ make test
```
In order to run the full suite of Acceptance tests, run `make testacc`.
*Note:* Acceptance tests create real resources, and often cost money to run.
```sh
$ export SFX_API_URL=https://api.signalfx.com # or https://api.eu0.signalfx.com
$ export SFX_AUTH_TOKEN=XXXXXX
$ make testacc
```
To also run the AWS integration tests for CloudWatch Metric Streams and AWS logs synchronization, you must create an actual AWS IAM user with an access key and secret that SignalFx can use to manage AWS resources, and define the `SFX_TEST_AWS_ACCESS_KEY_ID` and `SFX_TEST_AWS_SECRET_ACCESS_KEY` environment variables:
```sh
export SFX_TEST_AWS_ACCESS_KEY_ID=AKIAXXXXXX
export SFX_TEST_AWS_SECRET_ACCESS_KEY=XXXXXX
```
The following permissions must be granted. Additional permissions may be required to capture logs from specific AWS services.
```
"cloudwatch:DeleteMetricStream",
"cloudwatch:GetMetricStream",
"cloudwatch:ListMetricStreams",
"cloudwatch:PutMetricStream",
"cloudwatch:StartMetricStreams",
"cloudwatch:StopMetricStreams",
"iam:PassRole",
"logs:DeleteSubscriptionFilter",
"logs:DescribeLogGroups",
"logs:DescribeSubscriptionFilters",
"logs:PutSubscriptionFilter",
"s3:GetBucketLogging",
"s3:GetBucketNotification",
"s3:PutBucketNotification"
```
See [Connect to AWS using the guided setup in Splunk Observability Cloud](https://docs.splunk.com/Observability/gdi/get-data-in/connect/aws/aws-wizardconfig.html) and [Enable CloudWatch Metric Streams](https://docs.splunk.com/Observability/gdi/get-data-in/connect/aws/aws-apiconfig.html#enable-cloudwatch-metric-streams) in Splunk documentation for more details about creating that IAM policy.
Note that we use an IAM user instead of an IAM role as the latter requires an External ID that is only known at AWS integration creation time.
Releasing the Provider
----------------------
Install https://goreleaser.com/install/ if you don't already have it.
- Update changelog and create release in GH (vx.y.z format) in pre-release state
- `git pull` (Locally)
- `export GPG_TTY=$(tty)` (avoid gpg terminal issues if using iTerm2)
- `GITHUB_TOKEN=xxx GPG_FINGERPRINT=xxx goreleaser --rm-dist` (github token must have `repo` scope)
- Go back to release in github and mark as released/published
没有合适的资源?快使用搜索试试~ 我知道了~
TerraformSignalFx提供商_Go_HTML_下载.zip
共127个文件
go:73个
markdown:34个
md:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 88 浏览量
2023-04-26
11:32:14
上传
评论
收藏 242KB ZIP 举报
温馨提示
TerraformSignalFx提供商_Go_HTML_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
TerraformSignalFx提供商_Go_HTML_下载.zip (127个子文件)
CODEOWNERS 18B
signalfx.erb 7KB
.gitignore 149B
GNUmakefile 2KB
resource_signalfx_dashboard.go 37KB
resource_signalfx_time_chart.go 34KB
resource_signalfx_aws_integration.go 27KB
resource_signalfx_detector.go 24KB
resource_signalfx_dashboard_group.go 21KB
resource_signalfx_dashboard_and_friends_test.go 18KB
resource_signalfx_detector_test.go 17KB
resource_signalfx_list_chart.go 17KB
resource_signalfx_aws_integration_test.go 15KB
resource_signalfx_metric_ruleset.go 15KB
resource_signalfx_heatmap_chart.go 14KB
resource_signalfx_azure_integration.go 13KB
resource_signalfx_single_value_chart.go 13KB
util.go 12KB
provider_test.go 12KB
resource_signalfx_data_link.go 12KB
resource_signalfx_org_token.go 12KB
resource_signalfx_table_chart.go 11KB
resource_signalfx_metric_ruleset_test.go 11KB
resource_signalfx_team.go 10KB
provider.go 9KB
resource_signalfx_alert_muting_rule.go 9KB
resource_signalfx_gcp_integration.go 9KB
resource_signalfx_log_view.go 8KB
notifications.go 8KB
resource_signalfx_jira_integration.go 8KB
notifications_test.go 7KB
resource_signalfx_dashboard_group_dashboard_configs_test.go 7KB
resource_signalfx_time_chart_test.go 7KB
resource_signalfx_service_now_integration.go 6KB
resource_signalfx_list_chart_test.go 6KB
resource_signalfx_single_value_chart_test.go 6KB
resource_signalfx_event_feed_chart.go 5KB
resource_signalfx_data_link_test.go 5KB
resource_signalfx_gcp_integration_test.go 5KB
resource_signalfx_webhook_integration.go 5KB
resource_signalfx_table_chart_test.go 5KB
resource_signalfx_azure_integration_test.go 5KB
resource_signalfx_org_token_test.go 5KB
util_test.go 5KB
resource_signalfx_dashboard_group_test.go 5KB
resource_signalfx_team_test.go 4KB
resource_signalfx_log_view_test.go 4KB
resource_signalfx_heatmap_chart_test.go 4KB
resource_signalfx_opsgenie_integration.go 4KB
resource_signalfx_victor_ops_integration.go 4KB
resource_signalfx_pagerduty_integration.go 4KB
resource_signalfx_slack_integration.go 4KB
resource_signalfx_service_now_integration_test.go 4KB
resource_signalfx_dashboard_layouts_test.go 4KB
resource_signalfx_text_chart.go 4KB
resource_signalfx_alert_muting_rule_test.go 4KB
resource_signalfx_victor_ops_integration_test.go 3KB
resource_signalfx_opsgenie_integration_test.go 3KB
resource_signalfx_slack_integration_test.go 3KB
resource_signalfx_event_feed_chart_test.go 3KB
resource_signalfx_webhook_integration_test.go 3KB
resource_signalfx_jira_integration_test.go 3KB
resource_signalfx_dashboard_test.go 3KB
resource_signalfx_text_chart_test.go 3KB
resource_signalfx_aws_integration_ops.go 3KB
resource_signalfx_pagerduty_integration_test.go 3KB
data_source_dimension_values.go 2KB
integration.go 2KB
integration_test.go 1KB
resource_signalfx_aws_external_integration.go 1KB
resource_signalfx_aws_token_integration.go 1KB
data_source_azure_services.go 884B
data_source_gcp_services.go 872B
data_source_aws_services.go 872B
data_source_pagerduty_integration.go 789B
main.go 234B
version.go 141B
LICENSE 16KB
dashboard.html.markdown 14KB
detector.html.markdown 10KB
aws_integration.html.markdown 9KB
time_chart.html.markdown 8KB
list_chart.html.markdown 7KB
aws_external_integration.html.markdown 6KB
dashboard_group.html.markdown 6KB
azure_integration.html.markdown 5KB
heatmap_chart.html.markdown 5KB
single_value_chart.html.markdown 4KB
data_link.html.markdown 4KB
index.html.markdown 4KB
org_token.html.markdown 3KB
jira_integration.html.markdown 3KB
service_now_integration.html.markdown 3KB
gcp_integration.html.markdown 2KB
log_view.html.markdown 2KB
alert_muting_rule.html.markdown 2KB
aws_token_integration.html.markdown 2KB
metric_ruleset.html.markdown 2KB
team.html.markdown 2KB
text_chart.html.markdown 2KB
共 127 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Anaconda3-2024.02-1-Windows-x86-64.exe
- stm32cubemx can通信 一个板子负责传感器采集 一个板子负责wifi传递到网页 网页可控制传感器板子.zip
- k8s集群搭建1.27.1版本(来源于图灵k8s笔记)
- 树莓派连接 DS18B20 温度传感器读取温度时监控客户端,服务器端连接状况,实现断线重连机制
- 小游戏-坦克大战,你认为的小游戏
- 最好用的富文本编辑器wangeditor
- jQuery 3.7.1
- 校园失物招领小程序源码可作毕业设计
- SAP客户端GUI740安装包(JAVA版本)
- winlibs-x86-64-posix-seh-gcc-13.2.0-llvm-16.0.6-mingw-w64msvcrt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功