Skip to content

Commit 7e342cd

Browse files
authored
App-scoped egress IPs are no longer beta (#4720)
...and in the mean time, also flag old machine-scoped egress IPs as deprecated.
1 parent 641eb1c commit 7e342cd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

internal/command/ips/allocate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func newAllocatev6() *cobra.Command {
9292

9393
func newAllocateEgress() *cobra.Command {
9494
const (
95-
long = `(Beta) Allocates a pair of egress IP addresses for an app`
96-
short = `(Beta) Allocate app-scoped egress IPs`
95+
long = `Allocates a pair of egress IP addresses for an app`
96+
short = `Allocate app-scoped egress IPs`
9797
)
9898

9999
cmd := command.New("allocate-egress", short, long, runAllocateEgressIPAddresses,

internal/command/machine/egress_ip.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func newEgressIp() *cobra.Command {
1818
const (
19-
long = `Manage static egress (outgoing) IP addresses for machines`
19+
long = `(Deprecated) Manage static egress (outgoing) IP addresses for machines`
2020
short = `Manage static egress IPs`
2121
usage = "egress-ip <command>"
2222
)
@@ -36,7 +36,7 @@ func newEgressIp() *cobra.Command {
3636

3737
func newAllocateEgressIp() *cobra.Command {
3838
const (
39-
long = `Allocate a pair of static egress IPv4 and IPv6 for a machine`
39+
long = `(Deprecated) Allocate a pair of static egress IPv4 and IPv6 for a machine`
4040
short = `Allocate static egress IPs`
4141
usage = "allocate <machine-id>"
4242
)
@@ -111,7 +111,8 @@ func runAllocateEgressIP(ctx context.Context) (err error) {
111111
)
112112

113113
if !flag.GetYes(ctx) {
114-
msg := `Looks like you're allocating a static egress (outgoing) IP. This is an advanced feature, and is not needed by most apps.
114+
msg := `You're allocating a machine-scoped static egress (outgoing) IP.
115+
This is deprecated, and new apps should use app-scoped egress IPs instead (using the command 'fly ip allocate-egress -r <region>').
115116
Are you sure this is what you want?`
116117

117118
switch confirmed, err := prompt.Confirm(ctx, msg); {

0 commit comments

Comments
 (0)