infrastructure-as-code

How to get Group in Azure AD in Pulumi?

风格不统一 提交于 2020-06-17 15:52:18
问题 I'm trying to get a group in the Azure AD. var group = Output.Create( GetGroup.InvokeAsync( new GetGroupArgs { Name = "Administrators" })); PS C:\dev\___> pulumi preview Previewing update (dev): Type Name Plan Info pulumi:pulumi:Stack Frontend-dev 1 error Diagnostics: pulumi:pulumi:Stack (Frontend-dev): error: Running program 'C:\dev\___\bin\Debug\netcoreapp3.1\Frontend.dll' failed with an unhandled exception: Grpc.Core.RpcException: Status(StatusCode=Unknown, Detail="invocation of azuread

Getting EC2 Windows Password from instances when using Terraform

与世无争的帅哥 提交于 2019-12-23 04:19:52
问题 I'm struggling to get the password from a couple of new ec2 instances when using terraform. Been reading up through a couple of posts and thought i had it but not getting anywhere. Here's my config: resource "aws_instance" "example" { ami = "ami-06f9d25508c9681c3" count = "2" instance_type = "t2.small" key_name = "mykey" vpc_security_group_ids =["sg-98d190fc","sg-0399f246d12812edb"] get_password_data = "true" } output "public_ip" { value = "${aws_instance.example.*.public_ip}" } output