Skip to content

Commit 80ad28c

Browse files
chapmancncole
authored andcommitted
Remove ssh command output
1 parent abb2f0b commit 80ad28c

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

customer-managed/azure/privatelink/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ az login
1818

1919
## Provisioning Redpanda with Private Link
2020

21-
To provision a redpanda with private link there is currently only API support with UX support coming soon.
21+
To provision a private Redpanda cluster with Private Link you must use the API. UI support is coming soon.
2222

2323
### Environment setup
2424

@@ -29,7 +29,7 @@ To provision a redpanda with private link there is currently only API support wi
2929
export RPK_CLOUD_AUTH_AUDIENCE=cloudv2-production.redpanda.cloud
3030
```
3131
32-
2. Next obtaion a client id and secret by going to Organizations in the Cloud UI. Navigate to Clients. Select or create a client you would like to use to create the network and cluster. You can copy the ID and secret to your clipboard by clicking the “Copy ID” and “Copy secret” buttons.
32+
2. Next obtain a client id and secret by going to Organizations in the Cloud UI by navigating to https://cloud.redpanda.com/clients. Select or create a client you would like to use to create the network and cluster. You can copy the ID and secret to your clipboard by clicking the “Copy ID” and “Copy secret” buttons.
3333
```
3434
export CLOUD_CLIENT_ID=<client-ID>
3535
export CLOUD_CLIENT_SECRET=<client-secret>
@@ -39,10 +39,10 @@ To provision a redpanda with private link there is currently only API support wi
3939
4040
```
4141
# Where the redpanda cluster will be provisioned
42-
AZURE_SUBSCRIPTION_ID=60fc0bed-3072-4c53-906a-d130a934d520
42+
AZURE_SUBSCRIPTION_ID=<redpanda-subscription-id>
4343
4444
# Where you will connect to the private link service fronting redpanda
45-
AZURE_PRIVATE_LINK_SUBSCRIPTION_ID=1b88eb19-4c80-4edd-870d-461e83ddcbb5
45+
AZURE_PRIVATE_LINK_SUBSCRIPTION_ID=<connection-source-to-redpanda>
4646
```
4747
4848
### Provisioning
@@ -99,6 +99,8 @@ To provision a redpanda with private link there is currently only API support wi
9999
# NOTE: this should have output
100100
echo $NETWORK_ID
101101
```
102+
* NOTE: `region` may different in your case
103+
* NOTE: `cidr_block` may be different in your case
102104
1. Create the redpanda cluster with the allowed subscriptions we set before. NOTE: you can add as many other subscriptions as you would like under `allowed_subscriptions`
103105
104106
```
@@ -110,10 +112,10 @@ To provision a redpanda with private link there is currently only API support wi
110112
"resource_group_id": "$RESOURCE_GROUP_ID",
111113
"network_id": "$NETWORK_ID",
112114
"region": "uksouth",
113-
"throughput_tier": "tier-1-azure-beta",
115+
"throughput_tier": "tier-1-azure-v2-x86",
114116
"type": "TYPE_BYOC",
115117
"zones": ["uksouth-az1", "uksouth-az2", "uksouth-az3"],
116-
"redpanda_version": "24.1",
118+
"redpanda_version": "24.2",
117119
"azure_private_link": {
118120
"allowed_subscriptions": ["$AZURE_PRIVATE_LINK_SUBSCRIPTION_ID"],
119121
"enabled": true,
@@ -128,6 +130,7 @@ To provision a redpanda with private link there is currently only API support wi
128130
# NOTE: this should have output
129131
echo $RP_ID
130132
```
133+
* NOTE: `region` and `zones` may be different in your case
131134
1. Run the rpk apply to create the infrastructure for the cluster. This will take about 45 minutes to complete.
132135
```
133136
rpk login --save --client-id=$CLOUD_CLIENT_ID --client-secret=$CLOUD_CLIENT_SECRET
@@ -241,4 +244,4 @@ Once the cluster has been created we can now run terraform to connect to the cre
241244
```
242245
terraform destroy -var-file="terraform.tfvars"
243246
244-
```
247+
```

customer-managed/azure/privatelink/terraform/output.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,3 @@ output "ssh_private_key" {
5252
output "private_key_file_path" {
5353
value = abspath(local_file.private_key.filename)
5454
}
55-
56-
output "ssh_to_ec2_commands" {
57-
description = "SSH to EC2 instance commands"
58-
# Terraform go code has issue to unmarshall the output. So no output if running inside the certification tests.
59-
value = var.resource_prefix == "" ? {
60-
"get_ssh_key_command" : <<EOF
61-
cat terraform.tfstate | jq .outputs.ssh_private_key.value | sed 's/"//g' | awk '{gsub(/\\n/,"\n")}1' > ${local.cert_file}; chmod 600 ${local.cert_file}
62-
EOF
63-
"ssh_command" : format("ssh -i %s redpanda@%s", local.cert_file, azurerm_public_ip.public_ip.ip_address)
64-
} : null
65-
}

0 commit comments

Comments
 (0)