1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| tee __main__.py << "EOF"
"""A Python Pulumi program"""
import pulumi
import pulumi_newrelic as newrelic
# Create a New Relic Synthetic Monitor
synthetic_monitor = newrelic.synthetics.Monitor("example-monitor",
uri = "https://echowings.github.io",
type = "SIMPLE",
period = "EVERY_MINUTE",
status = "ENABLED",
locations_publics = ["AWS_US_WEST_1", "AWS_EU_WEST_2" ] # Locations from where thechecks are mode
)
# Export the ID of the monitor
pulumi.export('monitor_id', synthetic_monitor.id)
EOF
|