published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
This resource allows you to configure and manage firewall rules for the CloudAMQP instance.
WARNING: Firewall rules applied with this resource will replace any existing firewall rules. Make sure all wanted rules are present to not lose them.
NOTE: From v1.33.0 when destroying this resource the firewall on the servers will also be removed. I.e. the firewall will be completely closed.
Only available for dedicated subscription plans.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const _this = new cloudamqp.SecurityFirewall("this", {
instanceId: instance.id,
rules: [
{
ip: "192.168.0.0/24",
ports: [
4567,
4568,
],
services: [
"AMQP",
"AMQPS",
"HTTPS",
],
},
{
ip: "10.56.72.0/24",
ports: [],
services: [
"AMQP",
"AMQPS",
"HTTPS",
],
},
{
ip: "192.168.1.10/32",
ports: [],
services: [
"AMQP",
"AMQPS",
"HTTPS",
],
},
],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
this = cloudamqp.SecurityFirewall("this",
instance_id=instance["id"],
rules=[
{
"ip": "192.168.0.0/24",
"ports": [
4567,
4568,
],
"services": [
"AMQP",
"AMQPS",
"HTTPS",
],
},
{
"ip": "10.56.72.0/24",
"ports": [],
"services": [
"AMQP",
"AMQPS",
"HTTPS",
],
},
{
"ip": "192.168.1.10/32",
"ports": [],
"services": [
"AMQP",
"AMQPS",
"HTTPS",
],
},
])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewSecurityFirewall(ctx, "this", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Any(instance.Id),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("192.168.0.0/24"),
Ports: pulumi.IntArray{
pulumi.Int(4567),
pulumi.Int(4568),
},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("HTTPS"),
},
},
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("10.56.72.0/24"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("HTTPS"),
},
},
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("192.168.1.10/32"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("HTTPS"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var @this = new CloudAmqp.SecurityFirewall("this", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "192.168.0.0/24",
Ports = new[]
{
4567,
4568,
},
Services = new[]
{
"AMQP",
"AMQPS",
"HTTPS",
},
},
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "10.56.72.0/24",
Ports = new() { },
Services = new[]
{
"AMQP",
"AMQPS",
"HTTPS",
},
},
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "192.168.1.10/32",
Ports = new() { },
Services = new[]
{
"AMQP",
"AMQPS",
"HTTPS",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var this_ = new SecurityFirewall("this", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(
SecurityFirewallRuleArgs.builder()
.ip("192.168.0.0/24")
.ports(
4567,
4568)
.services(
"AMQP",
"AMQPS",
"HTTPS")
.build(),
SecurityFirewallRuleArgs.builder()
.ip("10.56.72.0/24")
.ports()
.services(
"AMQP",
"AMQPS",
"HTTPS")
.build(),
SecurityFirewallRuleArgs.builder()
.ip("192.168.1.10/32")
.ports()
.services(
"AMQP",
"AMQPS",
"HTTPS")
.build())
.build());
}
}
resources:
this:
type: cloudamqp:SecurityFirewall
properties:
instanceId: ${instance.id}
rules:
- ip: 192.168.0.0/24
ports:
- 4567
- 4568
services:
- AMQP
- AMQPS
- HTTPS
- ip: 10.56.72.0/24
ports: []
services:
- AMQP
- AMQPS
- HTTPS
- ip: 192.168.1.10/32
ports: []
services:
- AMQP
- AMQPS
- HTTPS
Faster instance destroy when running `terraform destroy` from v1.27.0
CloudAMQP Terraform provider v1.27.0 enables faster cloudamqp.Instance destroy when running
terraform destroy.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const instance = new cloudamqp.Instance("instance", {
name: "terraform-cloudamqp-instance",
plan: "penguin-1",
region: "amazon-web-services::us-west-1",
tags: ["terraform"],
});
const _this = new cloudamqp.SecurityFirewall("this", {
instanceId: instance.id,
rules: [
{
ip: "0.0.0.0/0",
ports: [],
services: ["HTTPS"],
description: "MGMT interface",
},
{
ip: "10.56.72.0/24",
ports: [],
services: [
"AMQP",
"AMQPS",
"HTTPS",
],
description: "VPC subnet",
},
],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
instance = cloudamqp.Instance("instance",
name="terraform-cloudamqp-instance",
plan="penguin-1",
region="amazon-web-services::us-west-1",
tags=["terraform"])
this = cloudamqp.SecurityFirewall("this",
instance_id=instance.id,
rules=[
{
"ip": "0.0.0.0/0",
"ports": [],
"services": ["HTTPS"],
"description": "MGMT interface",
},
{
"ip": "10.56.72.0/24",
"ports": [],
"services": [
"AMQP",
"AMQPS",
"HTTPS",
],
"description": "VPC subnet",
},
])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := cloudamqp.NewInstance(ctx, "instance", &cloudamqp.InstanceArgs{
Name: pulumi.String("terraform-cloudamqp-instance"),
Plan: pulumi.String("penguin-1"),
Region: pulumi.String("amazon-web-services::us-west-1"),
Tags: pulumi.StringArray{
pulumi.String("terraform"),
},
})
if err != nil {
return err
}
_, err = cloudamqp.NewSecurityFirewall(ctx, "this", &cloudamqp.SecurityFirewallArgs{
InstanceId: instance.ID(),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("0.0.0.0/0"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("HTTPS"),
},
Description: pulumi.String("MGMT interface"),
},
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("10.56.72.0/24"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("HTTPS"),
},
Description: pulumi.String("VPC subnet"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var instance = new CloudAmqp.Instance("instance", new()
{
Name = "terraform-cloudamqp-instance",
Plan = "penguin-1",
Region = "amazon-web-services::us-west-1",
Tags = new[]
{
"terraform",
},
});
var @this = new CloudAmqp.SecurityFirewall("this", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "0.0.0.0/0",
Ports = new() { },
Services = new[]
{
"HTTPS",
},
Description = "MGMT interface",
},
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "10.56.72.0/24",
Ports = new() { },
Services = new[]
{
"AMQP",
"AMQPS",
"HTTPS",
},
Description = "VPC subnet",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.Instance;
import com.pulumi.cloudamqp.InstanceArgs;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var instance = new Instance("instance", InstanceArgs.builder()
.name("terraform-cloudamqp-instance")
.plan("penguin-1")
.region("amazon-web-services::us-west-1")
.tags("terraform")
.build());
var this_ = new SecurityFirewall("this", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(
SecurityFirewallRuleArgs.builder()
.ip("0.0.0.0/0")
.ports()
.services("HTTPS")
.description("MGMT interface")
.build(),
SecurityFirewallRuleArgs.builder()
.ip("10.56.72.0/24")
.ports()
.services(
"AMQP",
"AMQPS",
"HTTPS")
.description("VPC subnet")
.build())
.build());
}
}
resources:
instance:
type: cloudamqp:Instance
properties:
name: terraform-cloudamqp-instance
plan: penguin-1
region: amazon-web-services::us-west-1
tags:
- terraform
this:
type: cloudamqp:SecurityFirewall
properties:
instanceId: ${instance.id}
rules:
- ip: 0.0.0.0/0
ports: []
services:
- HTTPS
description: MGMT interface
- ip: 10.56.72.0/24
ports: []
services:
- AMQP
- AMQPS
- HTTPS
description: VPC subnet
Dependency
This resource depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id.
If used together with VPC GPC peering, see additional information.
Known issues
Custom ports trigger new update every time
Before release v1.15.1 using the custom ports can cause a missmatch upon reading data and trigger a new update every time.
Reason is that there is a bug in validating the response from the underlying API.
Update the provider to at least v1.15.1 to fix the issue.
Using pre-defined service port in ports
Using one of the port from the pre-defined services in ports argument, see example of using port 5671 instead of the service AMQPS.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const firewallSettings = new cloudamqp.SecurityFirewall("firewall_settings", {
instanceId: instance.id,
rules: [{
ip: "192.168.0.0/24",
ports: [5671],
services: [],
}],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
instance_id=instance["id"],
rules=[{
"ip": "192.168.0.0/24",
"ports": [5671],
"services": [],
}])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewSecurityFirewall(ctx, "firewall_settings", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Any(instance.Id),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("192.168.0.0/24"),
Ports: pulumi.IntArray{
pulumi.Int(5671),
},
Services: pulumi.StringArray{},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var firewallSettings = new CloudAmqp.SecurityFirewall("firewall_settings", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "192.168.0.0/24",
Ports = new[]
{
5671,
},
Services = new() { },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var firewallSettings = new SecurityFirewall("firewallSettings", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(SecurityFirewallRuleArgs.builder()
.ip("192.168.0.0/24")
.ports(5671)
.services()
.build())
.build());
}
}
resources:
firewallSettings:
type: cloudamqp:SecurityFirewall
name: firewall_settings
properties:
instanceId: ${instance.id}
rules:
- ip: 192.168.0.0/24
ports:
- 5671
services: []
Will still create the firewall rule for the instance, but will trigger a new update each plan or
apply. Due to a missmatch between state file and underlying API response.
To solve this, edit the configuration file and change port 5671 to service AMQPS and run
pulumi up -refresh-only to only update the state file and remove the missmatch.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const firewallSettings = new cloudamqp.SecurityFirewall("firewall_settings", {
instanceId: instance.id,
rules: [{
ip: "192.168.0.0/24",
ports: [],
services: ["AMQPS"],
}],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
instance_id=instance["id"],
rules=[{
"ip": "192.168.0.0/24",
"ports": [],
"services": ["AMQPS"],
}])
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewSecurityFirewall(ctx, "firewall_settings", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Any(instance.Id),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("192.168.0.0/24"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("AMQPS"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var firewallSettings = new CloudAmqp.SecurityFirewall("firewall_settings", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "192.168.0.0/24",
Ports = new() { },
Services = new[]
{
"AMQPS",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var firewallSettings = new SecurityFirewall("firewallSettings", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(SecurityFirewallRuleArgs.builder()
.ip("192.168.0.0/24")
.ports()
.services("AMQPS")
.build())
.build());
}
}
resources:
firewallSettings:
type: cloudamqp:SecurityFirewall
name: firewall_settings
properties:
instanceId: ${instance.id}
rules:
- ip: 192.168.0.0/24
ports: []
services:
- AMQPS
The provider from v1.15.2 will start to warn about using this.
Create SecurityFirewall Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityFirewall(name: string, args: SecurityFirewallArgs, opts?: CustomResourceOptions);@overload
def SecurityFirewall(resource_name: str,
args: SecurityFirewallArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityFirewall(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
rules: Optional[Sequence[SecurityFirewallRuleArgs]] = None,
sleep: Optional[int] = None,
timeout: Optional[int] = None)func NewSecurityFirewall(ctx *Context, name string, args SecurityFirewallArgs, opts ...ResourceOption) (*SecurityFirewall, error)public SecurityFirewall(string name, SecurityFirewallArgs args, CustomResourceOptions? opts = null)
public SecurityFirewall(String name, SecurityFirewallArgs args)
public SecurityFirewall(String name, SecurityFirewallArgs args, CustomResourceOptions options)
type: cloudamqp:SecurityFirewall
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecurityFirewallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecurityFirewallArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecurityFirewallArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityFirewallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityFirewallArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var securityFirewallResource = new CloudAmqp.SecurityFirewall("securityFirewallResource", new()
{
InstanceId = 0,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "string",
Description = "string",
Ports = new[]
{
0,
},
Services = new[]
{
"string",
},
},
},
Sleep = 0,
Timeout = 0,
});
example, err := cloudamqp.NewSecurityFirewall(ctx, "securityFirewallResource", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Int(0),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("string"),
Description: pulumi.String("string"),
Ports: pulumi.IntArray{
pulumi.Int(0),
},
Services: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Sleep: pulumi.Int(0),
Timeout: pulumi.Int(0),
})
var securityFirewallResource = new SecurityFirewall("securityFirewallResource", SecurityFirewallArgs.builder()
.instanceId(0)
.rules(SecurityFirewallRuleArgs.builder()
.ip("string")
.description("string")
.ports(0)
.services("string")
.build())
.sleep(0)
.timeout(0)
.build());
security_firewall_resource = cloudamqp.SecurityFirewall("securityFirewallResource",
instance_id=0,
rules=[{
"ip": "string",
"description": "string",
"ports": [0],
"services": ["string"],
}],
sleep=0,
timeout=0)
const securityFirewallResource = new cloudamqp.SecurityFirewall("securityFirewallResource", {
instanceId: 0,
rules: [{
ip: "string",
description: "string",
ports: [0],
services: ["string"],
}],
sleep: 0,
timeout: 0,
});
type: cloudamqp:SecurityFirewall
properties:
instanceId: 0
rules:
- description: string
ip: string
ports:
- 0
services:
- string
sleep: 0
timeout: 0
SecurityFirewall Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityFirewall resource accepts the following input properties:
- Instance
Id int - The CloudAMQP instance ID.
- Rules
List<Pulumi.
Cloud Amqp. Inputs. Security Firewall Rule> - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- Timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- Instance
Id int - The CloudAMQP instance ID.
- Rules
[]Security
Firewall Rule Args - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- Timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id Integer - The CloudAMQP instance ID.
- rules
List<Security
Firewall Rule> - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep Integer
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout Integer
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id number - The CloudAMQP instance ID.
- rules
Security
Firewall Rule[] - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep number
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout number
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance_
id int - The CloudAMQP instance ID.
- rules
Sequence[Security
Firewall Rule Args] - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id Number - The CloudAMQP instance ID.
- rules List<Property Map>
- An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep Number
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout Number
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityFirewall resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecurityFirewall Resource
Get an existing SecurityFirewall resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecurityFirewallState, opts?: CustomResourceOptions): SecurityFirewall@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[int] = None,
rules: Optional[Sequence[SecurityFirewallRuleArgs]] = None,
sleep: Optional[int] = None,
timeout: Optional[int] = None) -> SecurityFirewallfunc GetSecurityFirewall(ctx *Context, name string, id IDInput, state *SecurityFirewallState, opts ...ResourceOption) (*SecurityFirewall, error)public static SecurityFirewall Get(string name, Input<string> id, SecurityFirewallState? state, CustomResourceOptions? opts = null)public static SecurityFirewall get(String name, Output<String> id, SecurityFirewallState state, CustomResourceOptions options)resources: _: type: cloudamqp:SecurityFirewall get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Instance
Id int - The CloudAMQP instance ID.
- Rules
List<Pulumi.
Cloud Amqp. Inputs. Security Firewall Rule> - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- Timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- Instance
Id int - The CloudAMQP instance ID.
- Rules
[]Security
Firewall Rule Args - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - Sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- Timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id Integer - The CloudAMQP instance ID.
- rules
List<Security
Firewall Rule> - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep Integer
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout Integer
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id number - The CloudAMQP instance ID.
- rules
Security
Firewall Rule[] - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep number
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout number
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance_
id int - The CloudAMQP instance ID.
- rules
Sequence[Security
Firewall Rule Args] - An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep int
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout int
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
- instance
Id Number - The CloudAMQP instance ID.
- rules List<Property Map>
- An array of rules, minimum of 1 needs to be configured. Each
rulesblock consists of the field documented below. - sleep Number
- Configurable sleep time in seconds between retries for firewall configuration. Default set to 30 seconds.
- timeout Number
Configurable timeout time in seconds for firewall configuration. Default set to 1800 seconds.
The
rulesblock consists of:
Supporting Types
SecurityFirewallRule, SecurityFirewallRuleArgs
- Ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- Description string
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- Ports List<int>
- Custom ports to be opened
- Services List<string>
- Pre-defined service ports, see table below
- Ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- Description string
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- Ports []int
- Custom ports to be opened
- Services []string
- Pre-defined service ports, see table below
- ip String
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description String
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- ports List<Integer>
- Custom ports to be opened
- services List<String>
- Pre-defined service ports, see table below
- ip string
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description string
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- ports number[]
- Custom ports to be opened
- services string[]
- Pre-defined service ports, see table below
- ip str
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description str
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- ports Sequence[int]
- Custom ports to be opened
- services Sequence[str]
- Pre-defined service ports, see table below
- ip String
- CIDR address: IP address with CIDR notation (e.g. 10.56.72.0/24)
- description String
Description name of the rule. e.g. Default.
Pre-defined services for RabbitMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 | | STOMP | 61613 | | STOMPS | 61614 | | STREAM | 5552 | | STREAM_SSL | 5551 |
Pre-defined services for LavinMQ:
| Service name | Port | |--------------|-------| | AMQP | 5672 | | AMQPS | 5671 | | HTTPS | 443 | | MQTT | 1883 | | MQTTS | 8883 |
- ports List<Number>
- Custom ports to be opened
- services List<String>
- Pre-defined service ports, see table below
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqpTerraform Provider.
published on Friday, Mar 20, 2026 by Pulumi
