public MyStack() { var alternate = new Aws.Provider("alternate", new Aws.ProviderArgs { Profile = "profile1", }); var senderShare = new Aws.Ram.ResourceShare("senderShare", new Aws.Ram.ResourceShareArgs { AllowExternalPrincipals = true, Tags = { { "Name", "tf-test-resource-share" }, }, }, new CustomResourceOptions { Provider = "aws.alternate", }); var receiver = Output.Create(Aws.GetCallerIdentity.InvokeAsync()); var senderInvite = new Aws.Ram.PrincipalAssociation("senderInvite", new Aws.Ram.PrincipalAssociationArgs { Principal = receiver.Apply(receiver => receiver.AccountId), ResourceShareArn = senderShare.Arn, }, new CustomResourceOptions { Provider = "aws.alternate", }); var receiverAccept = new Aws.Ram.ResourceShareAccepter("receiverAccept", new Aws.Ram.ResourceShareAccepterArgs { ShareArn = senderInvite.ResourceShareArn, }); }
public MyStack() { var example = new Aws.Ram.ResourceShare("example", new Aws.Ram.ResourceShareArgs { AllowExternalPrincipals = true, Tags = { { "Environment", "Production" }, }, }); }
public MyStack() { var exampleResourceShare = new Aws.Ram.ResourceShare("exampleResourceShare", new Aws.Ram.ResourceShareArgs { AllowExternalPrincipals = true, }); var examplePrincipalAssociation = new Aws.Ram.PrincipalAssociation("examplePrincipalAssociation", new Aws.Ram.PrincipalAssociationArgs { Principal = "111111111111", ResourceShareArn = exampleResourceShare.Arn, }); }